I am trying to run a simple job to install IIS using Ansible Tower playbook
| --- |
| # This playbook installs and enables IIS on Windows hosts |
|
|
| - name: Install IIS |
| hosts: all |
| gather_facts: false |
| tasks: |
| - name: Install IIS |
| win_feature: |
| name: "Web-Server" |
| state: present |
| restart: yes |
| include_sub_features: yes |
| include_management_tools: yes
|
I am getting the following error:
fatal: [10.10.3.167]: FAILED! => {"changed": false, "exitcode": "Failed", "failed": true, "feature_result": [], "invocation": {"module_name": "win_feature"}, "msg": "Failed to add feature", "restart_needed": false, "success": false}
fatal: [10.10.3.168]: FAILED! => {"changed": false, "exitcode": "Failed", "failed": true, "feature_result": [], "invocation": {"module_name": "win_feature"}, "msg": "Failed to add feature", "restart_needed": false, "success": false}
I am able to run the win_ping playbook fine, which means I can connect to these servers perfectly.
What could be causing this issue?