From 9ea38384d804bf1c58e0c3de526f4ff3a4ac98c2 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Nov 2023 12:30:23 +0100 Subject: [PATCH] updates --- .vscode/settings.json | 2 +- shutdown_windows.yml | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 40b54e4..30d5fd6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "ansible.python.interpreterPath": "/bin/python3", + "ansible.python.interpreterPath": "/usr/bin/python", "yaml.schemas": { "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook": [ "file:///home/alex/git/ansible/shutdown_windows.yml", diff --git a/shutdown_windows.yml b/shutdown_windows.yml index 5d64e8b..6de10ae 100644 --- a/shutdown_windows.yml +++ b/shutdown_windows.yml @@ -1,17 +1,8 @@ ---- - -#create a playbook that findes the windows server "homeserver" and makes it shutdown - - -- name: Shutdown Windows Servers +#playbook +- name: Playbook useing the role shutdown-role on windows servers hosts: windows become: true gather_facts: false roles: - { role: shutdown-role } - - -- name: Shutdown Windows Servers - -