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
|
export EDITOR=vim
|
||||||
|
|
||||||
|
# Fixes unexpected behaviour in certain terminals when in SSH
|
||||||
|
export TERM=vt100
|
||||||
|
|
||||||
neofetch
|
neofetch
|
||||||
# List all open ports and their associated programs
|
# List all open ports and their associated programs
|
||||||
ss -tulpn
|
ss -tulpn
|
||||||
# List ZFS pools status
|
|
||||||
zpool status
|
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,17 @@
|
||||||
regexp: 'persist'
|
regexp: 'persist'
|
||||||
replace: 'nopass'
|
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
|
# System Setup
|
||||||
- name: Ensure .bashrc is updated
|
- name: Ensure .bashrc is updated
|
||||||
template:
|
template:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue