]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
site.yml: combine validate play with fact gathering play
authorAndrew Schoen <aschoen@redhat.com>
Tue, 15 May 2018 18:01:54 +0000 (13:01 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 18 May 2018 15:58:24 +0000 (17:58 +0200)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
site.yml.sample

index 0bca0b3e404717d72eba547b3a55ea892cc56272..691feb2c685ebec2b05b0b6deffb478ded5f4147 100644 (file)
@@ -15,6 +15,8 @@
   - iscsi-gws
 
   gather_facts: false
+  any_errors_fatal: true
+  become: true
 
   tags:
     - always
@@ -22,7 +24,7 @@
   vars:
     delegate_facts_host: True
 
-  tasks:
+  pre_tasks:
     # If we can't get python2 installed before any module is used we will fail
     # so just try what we can to get it installed
     - name: check for python2
         - ansible_distribution == 'Fedora'
         - ansible_distribution_major_version|int >= 23
 
-- hosts:
-  - mons
-  - agents
-  - osds
-  - mdss
-  - rgws
-  - nfss
-  - restapis
-  - rbdmirrors
-  - clients
-  - mgrs
-  - iscsi-gws
-
-  gather_facts: false
-  any_errors_fatal: true
-  become: true
-
   roles:
     - ceph-defaults
     - ceph-validate
 
+
 - hosts: mons
   gather_facts: false
   become: True