aboutsummaryrefslogblamecommitdiffstats
path: root/roles/space_server/tasks/ansible.yml
blob: 209cb5bc0242119216161ed7eb02f45daa6f04c8 (plain) (tree)
1
2
3
4
5
6
7
8


                                 
                              
                      


               


                         
                                    



                                 














                                      

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