]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
nfs: remove duplicate task
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 25 Jun 2019 08:23:57 +0000 (10:23 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 26 Jun 2019 11:13:11 +0000 (13:13 +0200)
This task is already present in pre_requisite_non_container.yml

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit edb8d42596e1ab0625735460e86757184ffd7c5a)

roles/ceph-nfs/tasks/common.yml [deleted file]
roles/ceph-nfs/tasks/main.yml
roles/ceph-nfs/tasks/pre_requisite_non_container.yml

diff --git a/roles/ceph-nfs/tasks/common.yml b/roles/ceph-nfs/tasks/common.yml
deleted file mode 100644 (file)
index cbdf5ec..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
----
-- name: copy ceph keyring(s) if needed
-  copy:
-    src: "{{ fetch_directory }}/{{ fsid }}/{{ item.name }}"
-    dest: "{{ item.name }}"
-    owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
-    group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
-    mode: "{{ ceph_keyring_permissions }}"
-  with_items:
-    - { name: "/var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring", copy_key: true }
-    - { name: "/etc/ceph/{{ cluster }}.client.admin.keyring", copy_key: "{{ copy_admin_key }}" }
-  when:
-    - cephx | bool
-    - item.copy_key | bool
-    - groups.get(mon_group_name, []) | length > 0
index 600da8522190f45d5bcf8fc785dd72b63146279a..80f614e520db4152e1230eedd927d5410b27e253 100644 (file)
@@ -4,9 +4,6 @@
     container_exec_cmd: "{{ container_binary }} exec ceph-nfs-{{ ansible_hostname }}"
   when: containerized_deployment | bool
 
-- name: include common.yml
-  include_tasks: common.yml
-
 - name: include pre_requisite_non_container.yml
   include_tasks: pre_requisite_non_container.yml
   when: not containerized_deployment | bool
index 0a1e8e2ed43fbe6d660f998b832b8b0ee3d172b1..2d06c7a4531220f4d3c3778539ca37b0924b4b15 100644 (file)
   block:
     - name: copy bootstrap cephx keys
       copy:
-        src: "{{ fetch_directory }}/{{ fsid }}{{ item.name }}"
+        src: "{{ fetch_directory }}/{{ fsid }}/{{ item.name }}"
         dest: "{{ item.name }}"
         owner: "ceph"
         group: "ceph"
         mode: "0600"
       with_items:
         - { name: "/var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring", copy_key: "{{ nfs_obj_gw }}" }
+        - { name: "/etc/ceph/{{ cluster }}.client.admin.keyring", copy_key: "{{ copy_admin_key }}" }
       when: item.copy_key | bool
 
     - name: nfs object gateway related tasks