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

Windows workshop - reboot required when IIS gets installed #2139

Open
sebw opened this issue May 21, 2024 · 0 comments
Open

Windows workshop - reboot required when IIS gets installed #2139

sebw opened this issue May 21, 2024 · 0 comments
Assignees

Comments

@sebw
Copy link

sebw commented May 21, 2024

Problem Summary

Most students get the following error in chapter 4 step 6

TASK [Start iis service] *******************************************************
fatal: [student1-win1]: FAILED! => {"changed": false, "exists": false, "msg": "Service 'W3Svc' is not installed, need to set 'path' to create a new service"}

Install of features might require a reboot. We should invite student to add this in install_iis.yml

- name: Install IIS Web-Server with sub features and management tools
  ansible.windows.win_feature:
    name: Web-Server
    state: present
  register: win_feature

- name: Reboot if installing Web-Server feature requires it
  ansible.windows.win_reboot:
  when: win_feature.reboot_required

Issue Type

Documentation

Extra vars file

None

Ansible Playbook Output

See above

Ansible Version

AAP

Ansible Configuration

N/A

Ansible Execution Node

Ansible Controller (previously known as Ansible Tower)

Operating System

N/A

@nmartins0611 nmartins0611 self-assigned this May 21, 2024
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