From c40ed1c66b469e9a227f2fa37907c94fc0ac32ad Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 15 May 2018 13:01:54 -0500 Subject: [PATCH] site.yml: combine validate play with fact gathering play Signed-off-by: Andrew Schoen --- site.yml.sample | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/site.yml.sample b/site.yml.sample index 0bca0b3e4..691feb2c6 100644 --- a/site.yml.sample +++ b/site.yml.sample @@ -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 @@ -69,27 +71,11 @@ - 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