avoid gathering facts when we do not need to
authorRalf Jung <post@ralfj.de>
Sat, 19 May 2018 09:48:11 +0000 (11:48 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 19 May 2018 09:48:11 +0000 (11:48 +0200)
site.yml

index bc19efe09e66217b79a7998263ebbc5f53c7c4cc..0d82190badf30e29cbc1aa34b48825a33b18c6ec 100644 (file)
--- a/site.yml
+++ b/site.yml
@@ -1,28 +1,34 @@
 - hosts: all
 - hosts: all
+  gather_facts: no
+  pre_tasks:
+  - setup:
   roles:
   - base
   tags: base
 
   roles:
   - base
   tags: base
 
-- import_playbook: upgrade.yml
-
 - hosts: letsencrypt
 - hosts: letsencrypt
+  gather_facts: no
   roles:
   - letsencrypt
   tags: letsencrypt
 
   roles:
   - letsencrypt
   tags: letsencrypt
 
+# FIXME make this a role, or several
 - import_playbook: email.yml
 
 - hosts: bind
 - import_playbook: email.yml
 
 - hosts: bind
+  gather_facts: no
   roles:
   - bind
   tags: bind
 
 - hosts: prosody
   roles:
   - bind
   tags: bind
 
 - hosts: prosody
+  gather_facts: no
   roles:
   - prosody
   tags: prosody
 
 - hosts: apache
   roles:
   - prosody
   tags: prosody
 
 - hosts: apache
+  gather_facts: no
   roles:
   - apache
   tags: apache
   roles:
   - apache
   tags: apache