ansible-roles/ansible_ppa/defaults/main.yml

44 lines
2.8 KiB
YAML

---
# ansible PKG state: latest, installed, absent
ansible_pkg_state: latest
ansible_cfg_file: /etc/ansible/ansible.cfg
# options: smart, implicit, explicit.
ansible_gathering: smart
ansible_command_warnings: True
ansible_control_path: '%(directory)s/ansible-ssh-%%h-%%p-%%r'
#
# Note: it breaks sudo if there's 'requiretty' inside the sudoers file
ansible_pipelining: True
# Plugins base directory
ansible_plugins_base_dir: /usr/share/ansible/plugins
ansible_plugins_dirs:
- '{{ ansible_plugins_base_dir }}/action'
- '{{ ansible_plugins_base_dir }}/callback'
- '{{ ansible_plugins_base_dir }}/connection'
- '{{ ansible_plugins_base_dir }}/lookup'
- '{{ ansible_plugins_base_dir }}/vars'
- '{{ ansible_plugins_base_dir }}/filter'
- '{{ ansible_plugins_base_dir }}/test'
ansible_config_options:
- { section: 'defaults', option: 'gathering', value: '{{ ansible_gathering }}', state: 'present' }
- { section: 'defaults', option: 'host_key_checking', value: False, state: 'present' }
- { section: 'defaults', option: 'command_warnings', value: '{{ ansible_command_warnings }}', state: 'present' }
- { section: 'defaults', option: 'ssh_args', value: '-o ControlMaster=auto -o ControlPersist=60s', state: 'present' }
- { section: 'defaults', option: 'control_path', value: '{{ ansible_control_path }}', state: 'present' }
- { section: 'defaults', option: 'ansible_managed', value: 'Ansible managed: {file} on {host}', state: 'present' }
- { section: 'defaults', option: 'action_plugins', value: '{{ ansible_plugins_base_dir }}/action', state: 'present' }
- { section: 'defaults', option: 'callback_plugins', value: '{{ ansible_plugins_base_dir }}/callback', state: 'present' }
- { section: 'defaults', option: 'connection_plugins', value: '{{ ansible_plugins_base_dir }}/connection', state: 'present' }
- { section: 'defaults', option: 'lookup_plugins', value: '{{ ansible_plugins_base_dir }}/lookup', state: 'present' }
- { section: 'defaults', option: 'vars_plugins', value: '{{ ansible_plugins_base_dir }}/vars', state: 'present' }
- { section: 'defaults', option: 'filter_plugins', value: '{{ ansible_plugins_base_dir }}/filter', state: 'present' }
- { section: 'defaults', option: 'test_plugins', value: '{{ ansible_plugins_base_dir }}/test', state: 'present' }
- { section: 'defaults', option: 'bin_ansible_callbacks', value: False, state: 'present' }
- { section: 'defaults', option: 'fact_caching', value: 'memory', state: 'present' }
- { section: 'defaults', option: 'retry_files_enabled', value: True, state: 'present' }
- { section: 'defaults', option: 'retry_files_save_path', value: '~/.ansible_retry', state: 'present' }
- { section: 'ssh_connection', option: 'control_path', value: '{{ ansible_control_path }}', state: 'present' }
- { section: 'ssh_connection', option: 'pipelining', value: '{{ ansible_pipelining }}', state: 'present' }