Skip to content

Instantly share code, notes, and snippets.

@jorisdevrede
Created January 11, 2018 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorisdevrede/33329d74bdb704c6cdc571888d5c729a to your computer and use it in GitHub Desktop.
Save jorisdevrede/33329d74bdb704c6cdc571888d5c729a to your computer and use it in GitHub Desktop.
ansible spooler
---
- name: Reboot
hosts: all
become: yes
tasks:
- name: reboot system
shell: /bin/sleep 2 && /sbin/shutdown -r +1 "Ansible triggered reboot"
async: 1
poll: 0
ignore_erors: true
- name: wait for system to become reachable
wait_for_connection:
- name: gather facts
setup:
- name: Autolabel
hosts: all
become: yes
tasks:
- name: touch file
copy:
content: ""
dest: /.autolabel
force: no
owner: root
mode: 0644
# hashicorp vault ansible lookup plugin
https://github.com/jhaals/ansible-vault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment