Created
December 9, 2016 20:01
-
-
Save jasonbrooks/3161fe31d0428ee1c4d74b4c830e814e to your computer and use it in GitHub Desktop.
atomic install pkgs ansible
This file contains 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: Install packages | |
shell: rpm-ostree install kubernetes-client | |
register: command_result | |
ignore_errors: true | |
- name: restart hosts | |
shell: sleep 3 && shutdown -r now | |
async: 1 | |
poll: 0 | |
when: "'systemctl reboot' in command_result.stdout" | |
- name: wait for hosts to come back up | |
local_action: wait_for host={{ inventory_hostname }} port=22 state=started delay=15 timeout=120 | |
sudo: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment