aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/ansible.yml
blob: 209cb5bc0242119216161ed7eb02f45daa6f04c8 (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
31
32
33
---
- name: Create /etc/ansible/hosts
  copy:
    dest: '/etc/ansible/hosts'
    src: ansible/hosts
    owner: root
    group: root
    mode: 0644

- 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: