diff --git a/ansible/playbooks/win_reboot.yml b/ansible/playbooks/win_reboot.yml index 30349aa..cf215cb 100644 --- a/ansible/playbooks/win_reboot.yml +++ b/ansible/playbooks/win_reboot.yml @@ -1,10 +1,10 @@ --- -- name: Reboot VMs and log time - hosts: "{{ target_host }}" +- hosts: "{{ target_host }}" gather_facts: true - roles: - - reboot vars_files: - - ../vars/vars.yml - - ../vars/connection.yml - ../vars/common.yml + - ../vars/connection.yml + roles: + - role: win_reboot + tags: win_reboot + diff --git a/ansible/playbooks/win_update.yml b/ansible/playbooks/win_update.yml index 09ac5d2..ae4cec9 100644 --- a/ansible/playbooks/win_update.yml +++ b/ansible/playbooks/win_update.yml @@ -1,9 +1,10 @@ -- name: Running Update Playbook - hosts: '{{ target_host }}' +--- +- hosts: "{{ target_host }}" gather_facts: true - roles: - - update vars_files: - - ../vars/vars.yml - - ../vars/connection.yml - ../vars/common.yml + - ../vars/connection.yml + roles: + - role: win_update + tags: win_update +