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

Issue with the LOCALE verification when run in --check mode #2

Closed
erwangranger opened this issue Apr 11, 2019 · 1 comment
Closed

Comments

@erwangranger
Copy link
Contributor

Opening this issue to further document the rationale for a recent change.

a colleague pointed out the following issue:

[cloud-user@myserver pre-install-playbook]$ ansible-playbook -i pre-install.inventory.ini viya_pre_install_playbook.yml --tags locale_check --check

PLAY [sas-all] *****************************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************
ok: [deployTarget]

TASK [viya-ark.preinstall : WARNING: If you are running this playbook without the --check parameter, it WILL perform changes to your systems.] *********************************************
skipping: [deployTarget]

TASK [viya-ark.preinstall : Include vars of supported locales] *****************************************************************************************************************************
ok: [deployTarget]

TASK [viya-ark.preinstall : set_fact] ******************************************************************************************************************************************************
ok: [deployTarget]

TASK [viya-ark.preinstall : set_fact] ******************************************************************************************************************************************************
skipping: [deployTarget]

TASK [viya-ark.preinstall : Gather supported LOCALE language] ******************************************************************************************************************************
skipping: [deployTarget]

TASK [viya-ark.preinstall : debug] *********************************************************************************************************************************************************
fatal: [deployTarget]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/cloud-user/viya-ark/playbooks/pre-install-playbook/roles/viya-ark.preinstall/tasks/pre.locale_check.yml': line 26, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - debug:\n    ^ here\n"}
        to retry, use: --limit @/home/cloud-user/viya-ark/playbooks/pre-install-playbook/viya_pre_install_playbook.retry

PLAY RECAP *********************************************************************************************************************************************************************************
deployTarget               : ok=3    changed=0    unreachable=0    failed=1

[cloud-user@myserver pre-install-playbook]$

However, when running without the --check flag, it works fine

[cloud-user@myserver pre-install-playbook]$ ansible-playbook -i pre-install.inventory.ini viya_pre_install_playbook.yml --tags locale_check

PLAY [sas-all] *******************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************************
ok: [deployTarget]

TASK [viya-ark.preinstall : WARNING: If you are running this playbook without the --check parameter, it WILL perform changes to your systems.] ***********************************************************
Pausing for 60 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[viya-ark.preinstall : WARNING: If you are running this playbook without the --check parameter, it WILL perform changes to your systems.]
Press 'ctl+c' and then 'A' to abort the process. The playbook will continue after 60 seconds:
Press 'C' to continue the play or 'A' to abort
ok: [deployTarget]

TASK [viya-ark.preinstall : Include vars of supported locales] *******************************************************************************************************************************************
ok: [deployTarget]

TASK [viya-ark.preinstall : set_fact] ********************************************************************************************************************************************************************
ok: [deployTarget]

TASK [viya-ark.preinstall : set_fact] ********************************************************************************************************************************************************************
skipping: [deployTarget]

TASK [viya-ark.preinstall : Gather supported LOCALE language] ********************************************************************************************************************************************
changed: [deployTarget]

TASK [viya-ark.preinstall : debug] ***********************************************************************************************************************************************************************
ok: [deployTarget] => {
    "msg": "Current LANG: en_US"
}

TASK [viya-ark.preinstall : Assert currently configured language is supported.] **************************************************************************************************************************
ok: [deployTarget] => {
    "changed": false,
    "msg": "All assertions passed"
}

PLAY RECAP ***********************************************************************************************************************************************************************************************
deployTarget               : ok=7    changed=1    unreachable=0    failed=0

[cloud-user@myserver pre-install-playbook]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants