Open pratikbin opened 3 years ago
What is the target OS? What I think is happening is that on the host OS the locale is resolved to C
and the target OS doesn't understand C
(but does C.UTF-8
). That sounds like the target OS is EL8 or something else more modern.
What is the target OS?
$ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
And your host OS? What's your environment on that?
This is the host OS
wait, you mean, from where I'm running playbook?. ahh. checking...
it worked
it's checking in localhost which is my machine from where I'm running ansible,
I set/unset
export LC_COLLATE=
export LANG=
but why checking in localhost?
The idea is that these local env vars are also exported to the remote host. This ensures the local locale is also available on the remote host. However, your local locale ends up being C
and that's weird. Modern distributions are moving to C.UTF-8
only. I'd recommend setting the locale to something that does resolve.
Trying to install foreman with ansible
ansible-playbook --become --become-method=sudo -i hosts playbooks/foreman.yml -e foreman_repositories_version=3.0 --diff -vv
getting error
The locale you've entered is not available on your system
added one job
Print query
beforeEnsure ENV locales are available
to render and print the query thing https://github.com/theforeman/forklift/blob/eb7ae6abff14b39a14e0abed4e592afeeac22475/roles/foreman_installer/tasks/locales.yml#L11-L18list of locales with diffrent commands