Original Message:
Sent: 1/17/2024 12:43:00 AM
From: CHARIN KUMJUDPAI
Subject: RE: Ansible
Hello Rita Esiele,
One more things.
Change in /etc/environment
cecuser@p1375-pvm1:/home/cecuser $ sudo -i
root@p1375-pvm1:/ # vi /etc/environment
#LANG=en_US
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
# Save it.
root@p1375-pvm1:/ # exit
cecuser@p1375-pvm1:/home/cecuser $ locale
LANG=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=en_US.UTF-8
cecuser@p1375-pvm1:/home/cecuser $
cecuser@p1375-pvm1:/home/cecuser $ ansible --version
ansible [core 2.14.13]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/cecuser/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/freeware/lib/python3.9/site-packages/ansible
ansible collection location = /home/cecuser/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/freeware/bin/ansible.orig
python version = 3.9.18 (main, Sep 19 2023, 04:57:07) [GCC 10.3.0] (/opt/freeware/bin/python3.9)
jinja version = 3.1.2
libyaml = True
cecuser@p1375-pvm1:/home/cecuser $
------------------------------
CHARIN KUMJUDPAI
------------------------------
Original Message:
Sent: Wed January 17, 2024 12:34 AM
From: CHARIN KUMJUDPAI
Subject: Ansible
Hello Rita Esiele,
Here my solution.
Problem:
cecuser@p1375-pvm1:/home/cecuser $ ansible version
ERROR: Ansible could not initialize the preferred locale: unsupported locale setting
Solution and logs
cecuser@p1375-pvm1:/home/cecuser $ sudo -i
root@p1375-pvm1:/ # find / -name "bos.loc.com.utf" -ls
find: cannot open < /proc/1638710 >
find: cannot open < /proc/2556248 >
1073773626 313 -rw-r--r-- 1 root system 320512 Mar 25 2019 /repos/aix71/TL5/BASE/installp/ppc/bos.loc.com.utf
1073745566 380 -rw-r--r-- 1 root system 389120 Mar 30 2022 /repos/aix73/TL0/installp/ppc/bos.loc.com.utf
root@p1375-pvm1:/ #
root@p1375-pvm1:/ # find / -name "bos.loc.utf.EN_US" -ls
find: cannot open < /proc/1638710 >
find: cannot open < /proc/2556248 >
1073773712 5532 -rw-r--r-- 1 root system 5664768 Mar 25 2019 /repos/aix71/TL5/BASE/installp/ppc/bos.loc.utf.EN_US
1073745651 5813 -rw-r--r-- 1 root system 5952512 Mar 30 2022 /repos/aix73/TL0/installp/ppc/bos.loc.utf.EN_US
root@p1375-pvm1:/ #
# cd /repos/aix71/TL5/BASE/installp/ppc/
# installp -qaXgY -d . bos.loc.com.utf
# installp -qaXgY -d . bos.loc.utf.EN_US
Log and details.
root@p1375-pvm1:/ # cd /repos/aix71/TL5/BASE/installp/ppc/
root@p1375-pvm1:/repos/aix71/TL5/BASE/installp/ppc # installp -qaXgY -d . bos.loc.com.utf
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
Selected Filesets
-----------------
bos.loc.com.utf 7.1.5.0 # Common Locale Support - UTF-8
<<<< End of Success Section >>>>>>
+-----------------------------------------------------------------------------+
BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
1 Selected to be installed, of which:
1 Passed pre-installation verification
----
1 Total to be installed
+-----------------------------------------------------------------------------+
Installing Software...
+-----------------------------------------------------------------------------+
installp: APPLYING software for:
bos.loc.com.utf 7.1.5.0
. . . . . <<<< Copyright notice for bos.loc.com.utf >> . . . . . . .
Licensed Materials - Property of IBM
5765H4000
Copyright International Business Machines Corp. 1993, 2017.
All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . <<<< End of copyright notice for bos.loc.com.utf >>. . . .
Finished processing all filesets. (Total time: 1 secs).
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
bos.loc.com.utf 7.1.5.0 USR APPLY SUCCESS
installp: * * * A T T E N T I O N ! ! !
Software changes processed during this session require this system
and any of its diskless/dataless clients to be rebooted in order
for the changes to be made effective.
root@p1375-pvm1:/repos/aix71/TL5/BASE/installp/ppc # installp -qaXgY -d . bos.loc.utf.EN_US
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
Selected Filesets
-----------------
bos.loc.utf.EN_US 7.1.4.30 # Base System Locale UTF Code ...
<<<< End of Success Section >>
+-----------------------------------------------------------------------------+
BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
1 Selected to be installed, of which:
1 Passed pre-installation verification
----
1 Total to be installed
+-----------------------------------------------------------------------------+
Installing Software...
+-----------------------------------------------------------------------------+
installp: APPLYING software for:
bos.loc.utf.EN_US 7.1.4.30
. . . . . <<<< Copyright notice for bos.loc.utf.EN_US >> . . . . . . .
Licensed Materials - Property of IBM
5765H4000
Copyright International Business Machines Corp. 1998, 2016.
All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . <<<< End of copyright notice for bos.loc.utf.EN_US >>. . . .
Finished processing all filesets. (Total time: 1 secs).
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
bos.loc.utf.EN_US 7.1.4.30 USR APPLY SUCCESS
root@p1375-pvm1:/repos/aix71/TL5/BASE/installp/ppc #
root@p1375-pvm1:/repos/aix71/TL5/BASE/installp/ppc # exit
cecuser@p1375-pvm1:/home/cecuser $ ansible --version
ansible [core 2.14.13]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/cecuser/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/freeware/lib/python3.9/site-packages/ansible
ansible collection location = /home/cecuser/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/freeware/bin/ansible.orig
python version = 3.9.18 (main, Sep 19 2023, 04:57:07) [GCC 10.3.0] (/opt/freeware/bin/python3.9)
jinja version = 3.1.2
libyaml = True
cecuser@p1375-pvm1:/home/cecuser $
------------------------------
CHARIN KUMJUDPAI
Original Message:
Sent: Mon December 04, 2023 08:37 AM
From: Rita Esiele
Subject: Ansible
I am getting the error below when trying to get the version for ansible on a power server running AIX 7.2. Anyone seen this before? Any help would be appreciated
ERROR: Ansible could not initialize the preferred locale: unsupported locale setting
My current locale setting. I
# locale
LANG=en_US
LC_COLLATE="en_US"
LC_CTYPE="en_US"
LC_MONETARY="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_MESSAGES="en_US"
LC_ALL=
------------------------------
Rita Esiele
------------------------------