diff --git a/server-setup.yml b/server-setup.yml index 9fc50f5..65f129d 100644 --- a/server-setup.yml +++ b/server-setup.yml @@ -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: