From 8296a96bf4d4268468e5d06310379c670810f741 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Fri, 22 Feb 2019 12:59:41 +0100 Subject: [PATCH] ansible: use explicit fact gathering for simplicity This way, we don't have to repeat the gather_facts: false moniker over and over again. --- deploy/aws/provision/ansible.cfg | 1 + deploy/aws/provision/main.yml | 13 +++---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/deploy/aws/provision/ansible.cfg b/deploy/aws/provision/ansible.cfg index 29c710586..1bbb2b4a3 100644 --- a/deploy/aws/provision/ansible.cfg +++ b/deploy/aws/provision/ansible.cfg @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. [defaults] +gathering = explicit host_key_checking = False [ssh_connection] diff --git a/deploy/aws/provision/main.yml b/deploy/aws/provision/main.yml index e94474784..66e79a125 100644 --- a/deploy/aws/provision/main.yml +++ b/deploy/aws/provision/main.yml @@ -13,7 +13,6 @@ # limitations under the License. --- - hosts: localhost - gather_facts: false connection: local vars_files: - vars.yml @@ -28,11 +27,13 @@ - hosts: all remote_user: ec2-user become: true + tasks: + - name: Gather facts + setup: - hosts: type_aws_instance remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: @@ -42,7 +43,6 @@ - hosts: qed-server remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: @@ -51,7 +51,6 @@ - hosts: riot remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: @@ -60,7 +59,6 @@ - hosts: inmemory-storage remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: @@ -69,7 +67,6 @@ - hosts: prometheus remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: @@ -78,7 +75,6 @@ - hosts: role_qed remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: @@ -94,7 +90,6 @@ - hosts: role_auditor, role_monitor, role_publisher remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: @@ -110,7 +105,6 @@ - hosts: inmemory-storage remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: @@ -126,7 +120,6 @@ - hosts: prometheus remote_user: ec2-user become: true - gather_facts: false vars_files: - vars.yml tasks: