move from svn to this git repo

This commit is contained in:
Jens Heinitz
2021-06-10 14:41:21 +02:00
parent 3232ce9c1c
commit 365ba0d343
45 changed files with 2180 additions and 0 deletions

27
playbooks/reboot.yml Normal file
View File

@@ -0,0 +1,27 @@
---
- name: Reboot host
hosts: all
remote_user: root
tasks:
- name: reboot host
shell: 'sleep 5 && shutdown -r now "Reboot by Ansible."'
register: reboot
async: 1
poll: 0
ignore_errors: true
- name: wait for server to come down
local_action: wait_for host={{ inventory_hostname }} port=22 state=stopped
- name: wait for server to come up
local_action: wait_for host={{ inventory_hostname }} port=22 state=started
- name: check uptime
shell: 'uptime'
register: uptime
- name: show uptime
debug:
msg: "Uptime: {{ uptime.stdout }}"
...