Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AixPB: Put /usr/bin at the front of PATH for AIX #2288

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions ansible/playbooks/AdoptOpenJDK_AIX_Playbook/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,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
Expand All @@ -126,14 +130,18 @@
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
regexp: 'PATH=/usr/bin:/etc'
replace: 'PATH=/usr/bin:/opt/IBM/xlC/13.1.3/bin:/opt/freeware/bin:/etc'
tags:
- login_shell
- adoptopenjdk

##############
# freemarker #
Expand Down