aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/ansible.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks/ansible.yml')
-rw-r--r--roles/space_server/tasks/ansible.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/space_server/tasks/ansible.yml b/roles/space_server/tasks/ansible.yml
new file mode 100644
index 0000000..5dc74e2
--- /dev/null
+++ b/roles/space_server/tasks/ansible.yml
@@ -0,0 +1,30 @@
+---
+- name: Create /etc/ansible/hosts
+ copy:
+ src: ansible/hosts
+ dest: '/etc/ansible/hosts'
+
+- name: Configure ansible
+ ini_file:
+ path: /etc/ansible/ansible.cfg
+ section: '{{ item.section }}'
+ option: '{{ item.option }}'
+ value: '{{ item.value }}'
+ with_items:
+ - section: defaults
+ option: 'gathering'
+ value: 'smart'
+ - section: defaults
+ option: 'fact_caching'
+ value: 'jsonfile'
+ - section: defaults
+ option: 'fact_caching_connection'
+ value: '/tmp/ansible'
+ - section: defaults
+ option: 'fact_caching_timeout'
+ value: '600'
+ - section: defaults
+ option: 'error_on_missing_handler'
+ value: 'True'
+
+# vim: set ts=2 sw=2 et: