Set up network interfaces and SSH for Windows hosts. We can’t gather facts before we know which remote shell to use, so first run a win_ping to determine if a given host is running Windows.
5 lines
117 B
YAML
5 lines
117 B
YAML
- name: restart sshd
|
|
win_service:
|
|
name: sshd
|
|
state: restarted
|
|
when: "'handler' not in ansible_skip_tags"
|