Skip to content

Commit

Permalink
ansible: use explicit fact gathering for simplicity
Browse files Browse the repository at this point in the history
This way, we don't have to repeat the gather_facts: false moniker over and over
again.
  • Loading branch information
panchoh committed Feb 22, 2019
1 parent 3dc1299 commit 8296a96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions deploy/aws/provision/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
13 changes: 3 additions & 10 deletions deploy/aws/provision/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.
---
- hosts: localhost
gather_facts: false
connection: local
vars_files:
- vars.yml
Expand All @@ -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:
Expand All @@ -42,7 +43,6 @@
- hosts: qed-server
remote_user: ec2-user
become: true
gather_facts: false
vars_files:
- vars.yml
tasks:
Expand All @@ -51,7 +51,6 @@
- hosts: riot
remote_user: ec2-user
become: true
gather_facts: false
vars_files:
- vars.yml
tasks:
Expand All @@ -60,7 +59,6 @@
- hosts: inmemory-storage
remote_user: ec2-user
become: true
gather_facts: false
vars_files:
- vars.yml
tasks:
Expand All @@ -69,7 +67,6 @@
- hosts: prometheus
remote_user: ec2-user
become: true
gather_facts: false
vars_files:
- vars.yml
tasks:
Expand All @@ -78,7 +75,6 @@
- hosts: role_qed
remote_user: ec2-user
become: true
gather_facts: false
vars_files:
- vars.yml
tasks:
Expand All @@ -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:
Expand All @@ -110,7 +105,6 @@
- hosts: inmemory-storage
remote_user: ec2-user
become: true
gather_facts: false
vars_files:
- vars.yml
tasks:
Expand All @@ -126,7 +120,6 @@
- hosts: prometheus
remote_user: ec2-user
become: true
gather_facts: false
vars_files:
- vars.yml
tasks:
Expand Down

0 comments on commit 8296a96

Please sign in to comment.