diff --git a/tasks/main.yml b/tasks/main.yml index a828a197e14f56037921a453442b7ade3cd7b542..342965ed49350a8959863bd4b6ae6f7c4068fc4f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -163,6 +163,14 @@ sysctl_set: true with_items: "{{ sysctl_disable_ipv6_keys }}" +- name: set default path + template: + src: environment.j2 + dest: /etc/environment + owner: root + group: root + mode: '0644' + - name: Check if backup servers present in root known hosts lineinfile: path: /root/.ssh/known_hosts diff --git a/templates/environment.j2 b/templates/environment.j2 new file mode 100644 index 0000000000000000000000000000000000000000..847c8264ae488f96176f164b2840ca972edf438c --- /dev/null +++ b/templates/environment.j2 @@ -0,0 +1 @@ +PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin{% if inventory_hostname in groups.gitlab %}:/opt/gitlab/embedded/bin{% endif %}"