Ensure ansible.cfg is referenced no matter the directory
This commit is contained in:
parent
726e051dbf
commit
93124f37f3
|
|
@ -120,8 +120,9 @@ export ANSIBLECONF_DIR="{{ ansibleconf_directory }}"
|
|||
|
||||
export EDITOR=vim
|
||||
|
||||
# Fixes unexpected behaviour in certain terminals when in SSH
|
||||
export TERM=vt100
|
||||
|
||||
neofetch
|
||||
# List all open ports and their associated programs
|
||||
ss -tulpn
|
||||
# List ZFS pools status
|
||||
zpool status
|
||||
|
|
|
|||
|
|
@ -52,6 +52,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