Ensure ansible.cfg is referenced no matter the directory

This commit is contained in:
cspark 2024-03-19 13:47:59 +00:00
parent 726e051dbf
commit 93124f37f3
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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: