-
Bug
-
Resolution: Done
-
Major
-
RH294 - RHEL9.0-en-2-20221117
-
None
-
False
-
-
False
-
2
-
ILT, ROLE, VT
-
-
-
-
en-US (English)
Please fill in the following information:
URL: | https://rol.redhat.com/rol/app/courses/rh294-9.0/pages/ch02s04 |
Reporter RHNID: | rhn-gps--tmichett |
Section Title: | Guided Exercise: Managing Ansible Configuration Files |
Issue description
Negative testing didn't occur for this exercise and it works (appears to work) when it shouldn't an an incorrect password has been entered. The exercise should fail if an incorrect password has been entered for the SUDO password in Step 7.
Currently the exercise will run without complaints even when an incorrect password has been given.
Steps to reproduce:
Run through the exercises and leave the password "Blank" or type anything you want in there for the password as it isn't used to SUDO since there isn't a user defined in the ansible.cfg file.
Workaround:
Modify the book instructions to create a remote_user = student in the ansible.cfg file as shown below.
[student@workstation playbook-manage]$ cat ansible.cfg [defaults] inventory = ./inventory remote_user = student [privilege_escalation] become = true become_method = sudo become_user = root become_ask_pass = true
Expected result:
If incorrect password is entered, the ansible-navigator command should fail.
TASK [Ping internetweb] ******************************************************************************************************************* fatal: [serverb.lab.example.com]: FAILED! => {"msg": "Incorrect sudo password"}