Created
January 11, 2018 22:05
-
-
Save jorisdevrede/33329d74bdb704c6cdc571888d5c729a to your computer and use it in GitHub Desktop.
ansible spooler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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