Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.86 KB | None | 0 0
  1. - name: PLAY | Setup Client DNS and join Windows Domain (by IP)
  2.   hosts: ["{{ variable_host | default('windows') }}"]
  3.   gather_facts: false
  4.   tags: [ domain ]
  5.   vars:
  6.     - ansible_host: "{{ host_ip }}"
  7.     - ansible_user: "{{ ap_windows_instance_ansible_user }}"
  8.     - ansible_password: "{{ ap_windows_instance_ansible_password }}"
  9.     - ansible_connection: "{{ ap_windows_instance_ansible_connection }}"
  10.     - ansible_winrm_transport: "{{ ap_windows_instance_ansible_winrm_transport }}"
  11.     - ansible_winrm_server_cert_validation: "{{ ap_windows_instance_ansible_winrm_server_cert_validation }}"
  12.   pre_tasks:
  13.     - name: WAIT_FOR_CONNECTION | Wait for system to become stable/reachable over WinRM
  14.       wait_for_connection:
  15.         delay: 5  # wait this many seconds to become stable
  16.         timeout: 300  # give up after this many seconds
  17.       ignore_errors: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement