Add ansible.cfg to inventory folder

We should provide a default ansible.cfg file that users can either use
or modify.

Change-Id: Id6258e7a5250428de85693184e51df41094f170c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-03-01 14:24:18 -05:00
parent a09d86b5d0
commit 88eacbed7a
3 changed files with 17 additions and 14 deletions

View File

@ -0,0 +1,12 @@
# This file is generated by Ansible
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
[defaults]
callback_whitelist = profile_tasks, timer
fact_caching_connection = ~/.cache/ansible/facts
fact_caching = jsonfile
retry_files_enabled = false
[ssh_connection]
pipelining = true
retries = 3

View File

@ -1,9 +0,0 @@
[defaults]
callback_whitelist = profile_tasks, timer
fact_caching = jsonfile
fact_caching_connection = ~/.cache/ansible/facts
[ssh_connection]
# NOTE(pabelanger): Enable pipelining to deal with becomes issues:
# http://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user
pipelining = True

View File

@ -16,11 +16,11 @@
state: absent
when: ansible_os_family == 'RedHat'
- name: Install ansible configuration file
copy:
dest: "{{ ansible_user_dir }}/.ansible.cfg"
remote_src: true
src: "{{ ansible_user_dir }}/{{ windmill_src_dir }}/tests/ansible.cfg"
- name: Symlink ansible configuration file
file:
dest: ~/.ansible.cfg
src: "{{ ansible_user_dir}}/{{ windmill_src_dir }}/inventory/testing/ansible.cfg"
state: link
- name: Bootstrap bindep environment
args: