Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: PLAY | Setup Client DNS and join Windows Domain (by IP)
- hosts: ["{{ variable_host | default('windows') }}"]
- gather_facts: false
- tags: [ domain ]
- vars:
- - ansible_host: "{{ host_ip }}"
- - ansible_user: "{{ ap_windows_instance_ansible_user }}"
- - ansible_password: "{{ ap_windows_instance_ansible_password }}"
- - ansible_connection: "{{ ap_windows_instance_ansible_connection }}"
- - ansible_winrm_transport: "{{ ap_windows_instance_ansible_winrm_transport }}"
- - ansible_winrm_server_cert_validation: "{{ ap_windows_instance_ansible_winrm_server_cert_validation }}"
- pre_tasks:
- - name: WAIT_FOR_CONNECTION | Wait for system to become stable/reachable over WinRM
- wait_for_connection:
- delay: 5 # wait this many seconds to become stable
- timeout: 300 # give up after this many seconds
- ignore_errors: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement