aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/ansible.yml
blob: 5dc74e29ccbfc35fd16a60b2260f842a4280036e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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: