From e2b5fab14fd6aea2e1b56dba42d18ba82bedac1a Mon Sep 17 00:00:00 2001 From: abrown38 Date: Mon, 22 Jul 2024 14:16:12 +0100 Subject: [PATCH] Adjust structure of playbook --- ansible/playbooks/win_reboot.yml | 12 ++++++------ ansible/playbooks/win_update.yml | 13 +++++++------ 2 files changed, 13 insertions(+), 12 deletions(-) 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 +