Disable facts gathering on top-level playbooks

In the playbooks logic, the facts are not used and they are a
quite expensive operation, this speeds up execution.
This commit is contained in:
Ricardo Carrillo Cruz 2015-05-13 12:58:36 +02:00
parent 01359b53c8
commit 11c6c4cc1e
11 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
---
# file: bootstrap_puppet_infra_nodes.yml
- hosts: infra:!meta-infra_type_puppetmaster
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: bootstrap_puppetmaster.yml
- hosts: meta-infra_type_puppetmaster
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: common.yml
- hosts: infra
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: deploy_hiera.yml
- hosts: meta-infra_type_puppetmaster
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: deploy_system_config.yml
- hosts: localhost
gather_facts: no
connection: local
roles:
- { role: deploy_system_config }

View File

@ -1,6 +1,7 @@
---
# file: post_puppet_gerrit.yml
- hosts: meta-infra_type_gerrit
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: post_puppet_jenkins.yml
- hosts: meta-infra_type_jenkins
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: pre_puppet_gerrit.yml
- hosts: meta-infra_type_gerrit
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: run_puppet_infra_nodes
- hosts: infra:!meta-infra_type_puppetmaster
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: set_hostnames.yml
- hosts: infra
gather_facts: no
user: ubuntu
sudo: true
roles:

View File

@ -1,6 +1,7 @@
---
# file: sign_infra_nodes_certs
- hosts: meta-infra_type_puppetmaster
gather_facts: no
user: ubuntu
sudo: true
roles: