]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Common: change path for fetch_directory
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Jul 2017 14:22:54 +0000 (16:22 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 17 Jul 2017 19:11:01 +0000 (21:11 +0200)
Some tasks fetch file to `{{ fetch_directory }}/docker_mon_files` and
then try to copy from `{{ fetch_directory }}/{{ fsid }}`. That causes
the playbook to fail.

Fixes: #1683
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-docker-common/tasks/fetch_configs.yml
roles/ceph-mon/tasks/docker/copy_configs.yml
roles/ceph-mon/tasks/docker/main.yml
roles/ceph-nfs/tasks/docker/copy_configs.yml
roles/ceph-rgw/tasks/docker/copy_configs.yml

index ac432dd6ca5ca74d65c03ffb7539e577dc1039c2..b321b549533ccb024d36aa6186987a5428efd2bb 100644 (file)
@@ -28,7 +28,7 @@
   when: "{{ groups.get(mgr_group_name, []) | length > 0 }}"
 
 - name: stat for ceph config and keys
-  local_action: stat path={{ fetch_directory }}/docker_mon_files/{{ item }}
+  local_action: stat path={{ fetch_directory }}/{{ fsid }}/{{ item }}
   with_items: "{{ ceph_config_keys }}"
   changed_when: false
   become: false
@@ -38,7 +38,7 @@
 
 - name: try to fetch ceph config and keys
   copy:
-    src: "{{ fetch_directory }}/docker_mon_files/{{ item.0 }}"
+    src: "{{ fetch_directory }}/{{ fsid }}/{{ item.0 }}"
     dest: "{{ item.0 }}"
     owner: root
     group: root
index e5a684a96966aee110fb6573df3ea127910c27ca..53076e859eabce70bdf94d682fa8896dc5f0c1be 100644 (file)
@@ -2,7 +2,7 @@
 - name: push ceph files to the ansible server
   fetch:
     src: "{{ item.0 }}"
-    dest: "{{ fetch_directory }}/docker_mon_files/{{ item.0 }}"
+    dest: "{{ fetch_directory }}/{{ fsid }}/{{ item.0 }}"
     flat: yes
   with_together:
     - "{{ ceph_config_keys }}"
index 1a2f99a05b9d26c8e8f319541693a16ad4ff3004..f7d073d9de1e9d63d55142da78ddce760dd86386 100644 (file)
@@ -72,7 +72,7 @@
   - name: push ceph mgr key(s)
     fetch:
       src: "{{ ceph_conf_key_directory }}/{{ cluster }}.mgr.{{ hostvars[item.item]['ansible_hostname'] }}.keyring"
-      dest: "{{ fetch_directory }}/docker_mon_files/{{ item.stat.path }}"
+      dest: "{{ fetch_directory }}/{{ fsid }}/{{ item.stat.path }}"
       flat: yes
     with_items:
       - "{{ stat_mgr_keys.results }}"
index 8101f2f953cb3413705c06a7216e6f552cffb554..21d2f86c231c2213ee62520ec2e1fddea422f421 100644 (file)
@@ -7,7 +7,7 @@
       - /var/lib/ceph/radosgw/keyring
 
 - name: stat for config and keys
-  local_action: stat path={{ fetch_directory }}/docker_mon_files/{{ item }}
+  local_action: stat path={{ fetch_directory }}/{{ fsid }}/{{ item }}
   with_items: "{{ ceph_config_keys }}"
   changed_when: false
   become: false
@@ -17,7 +17,7 @@
 
 - name: try to fetch config and keys
   copy:
-    src: "{{ fetch_directory }}/docker_mon_files/{{ item.0 }}"
+    src: "{{ fetch_directory }}/{{ fsid }}/{{ item.0 }}"
     dest: "{{ item.0 }}"
     owner: "64045"
     group: "64045"
index a05d638ae1ed82cfbc78276d11ef0d130374ab50..fb5eee6aeeefb68e36e14bcb9eb76b7c662f9581 100644 (file)
@@ -12,7 +12,7 @@
     - inventory_hostname == groups[rgw_group_name][0]
 
 - name: stat for config and keys
-  local_action: stat path={{ fetch_directory }}/docker_mon_files/{{ item }}
+  local_action: stat path={{ fetch_directory }}/{{ fsid }}/{{ item }}
   with_items: "{{ rgw_config_keys }}"
   changed_when: false
   become: false
@@ -26,7 +26,7 @@
 - name: push ceph files to the ansible server
   fetch:
     src: "{{ item.0 }}"
-    dest: "{{ fetch_directory }}/docker_mon_files/var/lib/ceph/radosgw/keyring"
+    dest: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/radosgw/keyring"
     flat: yes
   with_together:
     - "{{ rgw_config_keys }}"