diff options
Diffstat (limited to 'ansible/roles/dc01/tasks')
-rw-r--r-- | ansible/roles/dc01/tasks/cleanup.yaml | 2 | ||||
-rw-r--r-- | ansible/roles/dc01/tasks/init.yaml | 2 | ||||
-rw-r--r-- | ansible/roles/dc01/tasks/install_software.yaml | 2 | ||||
-rw-r--r-- | ansible/roles/dc01/tasks/populate_ad.yaml | 2 | ||||
-rw-r--r-- | ansible/roles/dc01/tasks/reboot.yaml | 2 | ||||
-rw-r--r-- | ansible/roles/dc01/tasks/set_hostname.yaml | 2 | ||||
-rw-r--r-- | ansible/roles/dc01/tasks/setup_domain.yaml | 2 | ||||
-rw-r--r-- | ansible/roles/dc01/tasks/setup_gpo.yaml | 2 | ||||
-rw-r--r-- | ansible/roles/dc01/tasks/wait_for_ready.yaml | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/ansible/roles/dc01/tasks/cleanup.yaml b/ansible/roles/dc01/tasks/cleanup.yaml index e30df58..0e59407 100644 --- a/ansible/roles/dc01/tasks/cleanup.yaml +++ b/ansible/roles/dc01/tasks/cleanup.yaml @@ -1,3 +1,3 @@ -- name: "{{ ansible_host }}: execute cleanup.ps1" +- name: execute cleanup.ps1 ansible.windows.win_powershell: script: C:\scripts\cleanup.ps1 diff --git a/ansible/roles/dc01/tasks/init.yaml b/ansible/roles/dc01/tasks/init.yaml index afd2820..84b3c3e 100644 --- a/ansible/roles/dc01/tasks/init.yaml +++ b/ansible/roles/dc01/tasks/init.yaml @@ -1,3 +1,3 @@ -- name: "{{ ansible_host }}: execute init.ps1" +- name: execute init.ps1 ansible.windows.win_powershell: script: C:\scripts\init.ps1 diff --git a/ansible/roles/dc01/tasks/install_software.yaml b/ansible/roles/dc01/tasks/install_software.yaml index 4c43d2b..a5018a8 100644 --- a/ansible/roles/dc01/tasks/install_software.yaml +++ b/ansible/roles/dc01/tasks/install_software.yaml @@ -1,3 +1,3 @@ -- name: "{{ ansible_host }}: execute install-software.ps1" +- name: execute install-software.ps1 ansible.windows.win_powershell: script: C:\scripts\install-software.ps1 diff --git a/ansible/roles/dc01/tasks/populate_ad.yaml b/ansible/roles/dc01/tasks/populate_ad.yaml index 6eae140..e65ab64 100644 --- a/ansible/roles/dc01/tasks/populate_ad.yaml +++ b/ansible/roles/dc01/tasks/populate_ad.yaml @@ -1,4 +1,4 @@ -- name: "{{ ansible_host }}: execute populate-ad.ps1" +- name: execute populate-ad.ps1 ansible.windows.win_powershell: script: C:\scripts\populate-ad.ps1 parameters: diff --git a/ansible/roles/dc01/tasks/reboot.yaml b/ansible/roles/dc01/tasks/reboot.yaml index 6c17c3d..f36b168 100644 --- a/ansible/roles/dc01/tasks/reboot.yaml +++ b/ansible/roles/dc01/tasks/reboot.yaml @@ -1,3 +1,3 @@ -- name: "{{ ansible_host }}: reboot" +- name: reboot ansible.windows.win_reboot: reboot_timeout: 3600 diff --git a/ansible/roles/dc01/tasks/set_hostname.yaml b/ansible/roles/dc01/tasks/set_hostname.yaml index 73fa63c..5ad01b2 100644 --- a/ansible/roles/dc01/tasks/set_hostname.yaml +++ b/ansible/roles/dc01/tasks/set_hostname.yaml @@ -1,2 +1,2 @@ -- name: "{{ ansible_host }}: set hostname" +- name: set hostname ansible.windows.win_shell: Rename-Computer -NewName "{{ main_dc01_hostname }}" -Force diff --git a/ansible/roles/dc01/tasks/setup_domain.yaml b/ansible/roles/dc01/tasks/setup_domain.yaml index 778c4db..95c2066 100644 --- a/ansible/roles/dc01/tasks/setup_domain.yaml +++ b/ansible/roles/dc01/tasks/setup_domain.yaml @@ -1,4 +1,4 @@ -- name: "{{ ansible_host }}: execute setup-main-domain.ps1" +- name: execute setup-main-domain.ps1 ansible.windows.win_powershell: script: C:\scripts\setup-main-domain.ps1 parameters: diff --git a/ansible/roles/dc01/tasks/setup_gpo.yaml b/ansible/roles/dc01/tasks/setup_gpo.yaml index 53eb086..fc44130 100644 --- a/ansible/roles/dc01/tasks/setup_gpo.yaml +++ b/ansible/roles/dc01/tasks/setup_gpo.yaml @@ -1,4 +1,4 @@ -- name: "{{ ansible_host }}: execute setup-gpo.ps1 as domain admin" +- name: execute setup-gpo.ps1 as domain admin ansible.windows.win_command: powershell.exe -ExecutionPolicy Bypass -File C:\scripts\setup-gpo.ps1 -DomainName "{{ main_domain_name }}" become: yes become_method: runas diff --git a/ansible/roles/dc01/tasks/wait_for_ready.yaml b/ansible/roles/dc01/tasks/wait_for_ready.yaml index c43431c..b077e07 100644 --- a/ansible/roles/dc01/tasks/wait_for_ready.yaml +++ b/ansible/roles/dc01/tasks/wait_for_ready.yaml @@ -1,3 +1,3 @@ -- name: "{{ ansible_host }}: execute dc-wait-for-ready.ps1" +- name: execute dc-wait-for-ready.ps1 ansible.windows.win_powershell: script: C:\scripts\dc-wait-for-ready.ps1 |