-
Bug
-
Resolution: Unresolved
-
Normal
-
DO417 - RHAAP2.4-en-3-20250117
-
None
-
False
-
-
False
-
-
-
en-US (English)
Please fill in the following information:
URL: | https://rol.redhat.com/rol/app/courses/do417-2.4/pages/ch11s05 |
Reporter RHNID: | bmcintyr |
Section Title: | Lab: Run Tasks Conditionally |
Issue description
Internal user feedback:
Description: In the lab "Run Tasks Conditionally" solution:
This is incorrect:
- name: Web security features are installed
ansible.windows.win_feature:
name: "{{ item }}"
state: present
loop:
- Web-Security
- Web-Basic-Auth
- Web-IP-Security
It should be:
- name: Web security features are installed
ansible.windows.win_feature:
name:
- Web-Security
- Web-Basic-Auth
- Web-IP-Security
state: present
I'm sure that formatting is all messed up, but the idea is you don't need to loop through the features. The 'name' parameter will accept a list.
Steps to reproduce:
Workaround:
Expected result: