]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
infrastructure-playbooks: fix syntax errors in all playbooks
authorAndrew Schoen <aschoen@redhat.com>
Tue, 25 Oct 2016 21:56:58 +0000 (16:56 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 26 Oct 2016 17:22:04 +0000 (12:22 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit bebf412c925962f9f1df40a239a10bed03256d8a)

Conflicts:
infrastructure-playbooks/purge-multisite.yml

Resolves: rhbz#1388295

cluster-os-migration.yml
rolling_update.yml

index 9053dfd91dfd617f825c285f2a5f64a1987cb55f..21e17d90482e7cdd4cfee808d2baeba54cc38140 100644 (file)
     - fail: msg="Looks like an archive is already there, please remove it!"
       when: migration_completed.stat.exists == False and rgw_archive_leftover.stat.exists == True
 
-   - name: Archive rados gateway configs
+    - name: Archive rados gateway configs
       shell: >
         tar -cpvzf - --one-file-system . /etc/ceph/* /etc/apache2/* | cat > {{ ansible_hostname }}.tar
         chdir=/var/lib/ceph/
       when: migration_completed.stat.exists == False
 
     - name: Copy keys and configs
-      shell: {{ item }} chdir=/var/lib/ceph/
+      shell: >
+        {{ item }}
+        chdir=/var/lib/ceph/
       with_items:
         - cp etc/ceph/* /etc/ceph/
         - cp -r etc/apache2/* /etc/httpd/
index 9fd96835f2dac66a40b8f05006e391eb58dda564..da530d38af6f4c8d0c3c12cec75793247df1df35 100644 (file)
          invoking the playbook"
     when: ireallymeanit != 'yes'
 
-vars:
-  mon_group_name:       mons
-  osd_group_name:       osds
-  mds_group_name:       mdss
-  rgw_group_name:       rgws
-
-hosts:
-  - "{{ mon_group_name }}"
-  - "{{ osd_group_name }}"
-  - "{{ mds_group_name }}"
-  - "{{ rgw_group_name }}"
+- name: gather facts and check the init system
+  vars:
+    mon_group_name:       mons
+    osd_group_name:       osds
+    mds_group_name:       mdss
+    rgw_group_name:       rgws
+
+  hosts:
+    - "{{ mon_group_name }}"
+    - "{{ osd_group_name }}"
+    - "{{ mds_group_name }}"
+    - "{{ rgw_group_name }}"
 
   become: True
   tasks: