Ensure ansible.cfg is referenced no matter the directory
This commit is contained in:
parent
d6adcfebc2
commit
9e31dd69af
|
|
@ -60,6 +60,17 @@
|
|||
regexp: 'persist'
|
||||
replace: 'nopass'
|
||||
|
||||
# Environment Variables config
|
||||
- name: Configure environment variables
|
||||
become: yes
|
||||
lineinfile:
|
||||
path: "/etc/environment"
|
||||
state: present
|
||||
regexp: "^{{ item.key }}="
|
||||
line: "{{ item.key }}={{ item.value}}"
|
||||
loop:
|
||||
- { key: "ANSIBLE_CONFIG", value: "{{ ansibleconf_directory }}/ansible.cfg" }
|
||||
|
||||
# System Setup
|
||||
- name: Ensure .bashrc is updated
|
||||
template:
|
||||
|
|
|
|||
Loading…
Reference in New Issue