mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 20:42:11 +00:00
Added Reboot Playbook
This commit is contained in:
parent
b4ed9952bf
commit
00e4043bca
2 changed files with 21 additions and 0 deletions
11
cloud/ansible/reboot.yaml
Normal file
11
cloud/ansible/reboot.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# This playbook reboots a T-Pot
|
||||||
|
|
||||||
|
- hosts: TPOT
|
||||||
|
remote_user: linux
|
||||||
|
become: yes
|
||||||
|
become_user: root
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- reboot
|
10
cloud/ansible/roles/reboot/tasks/main.yaml
Normal file
10
cloud/ansible/roles/reboot/tasks/main.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
- 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
|
Loading…
Reference in a new issue