From 949a8854c63d5668835f976f27de542c576bd827 Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Sun, 14 Apr 2019 15:11:01 +0000 Subject: [PATCH] Moved reboot role to task in playbook --- cloud/ansible/reboot.yaml | 7 ++++--- cloud/ansible/roles/reboot/tasks/main.yaml | 10 ---------- 2 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 cloud/ansible/roles/reboot/tasks/main.yaml diff --git a/cloud/ansible/reboot.yaml b/cloud/ansible/reboot.yaml index 883e2a43..f4fc4f3f 100644 --- a/cloud/ansible/reboot.yaml +++ b/cloud/ansible/reboot.yaml @@ -5,7 +5,8 @@ become: yes become_user: root become_method: sudo - gather_facts: no - roles: - - reboot + tasks: + - name: Finally rebooting t-pot in one minute - make sure your next login is on port 64295 or via https:// on port 64297 + shell: /sbin/shutdown -r -t 1 + become: true diff --git a/cloud/ansible/roles/reboot/tasks/main.yaml b/cloud/ansible/roles/reboot/tasks/main.yaml deleted file mode 100644 index f58c86a1..00000000 --- a/cloud/ansible/roles/reboot/tasks/main.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- name: Waiting for SSH connection - wait_for_connection: - timeout: 300 - -- name: Gathering Facts - setup: - -- name: Finally rebooting t-pot in one minute - make sure your next login is on port 64295 or via https:// on port 64297 - shell: /sbin/shutdown -r -t 1 - become: true