From a5918a0014daee682bb70a2c7c1284e456d32e72 Mon Sep 17 00:00:00 2001 From: Haroon Khel <34969545+Haroon-Khel@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:35:56 +0800 Subject: [PATCH] aixPb: Put /usr/bin in front of PATH (#3716) * aixPb: Put /usr/bin in front of PATH * Remove /etc --- .../roles/bash_login/tasks/main.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/bash_login/tasks/main.yml b/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/bash_login/tasks/main.yml index 8e1b9fd918..2372527119 100644 --- a/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/bash_login/tasks/main.yml +++ b/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/bash_login/tasks/main.yml @@ -7,14 +7,18 @@ path: /etc/security/login.cfg regexp: 'shells = ' replace: 'shells = /bin/bash,' - tags: login_shell + tags: + - login_shell + - adoptopenjdk - name: Add bash to available login shells blockinfile: dest: /etc/shells block: | /bin/bash - tags: login_shell + tags: + - login_shell + - adoptopenjdk # move to role later - name: Set variables for global environment @@ -24,11 +28,15 @@ AIXTHREAD_HRT=true PKG_CONFIG_PATH=/opt/freeware/lib64/pkgconfig:/opt/freeware/lib/pkgconfig PERL5LIB=/opt/freemarker/lib/perl5 - tags: login_shell + tags: + - login_shell + - adoptopenjdk - name: Add freeware and xlc to PATH for global environment replace: path: /etc/environment regexp: 'PATH=/usr/bin' - replace: 'PATH=/opt/freeware/bin:/opt/IBM/xlC/13.1.3/bin:/usr/bin' - tags: login_shell + replace: 'PATH=/usr/bin:/opt/IBM/xlC/13.1.3/bin:/opt/freeware/bin:' + tags: + - login_shell + - adoptopenjdk