Skip to content

Instantly share code, notes, and snippets.

@jasonbrooks
Created December 9, 2016 20:01
Show Gist options
  • Save jasonbrooks/3161fe31d0428ee1c4d74b4c830e814e to your computer and use it in GitHub Desktop.
Save jasonbrooks/3161fe31d0428ee1c4d74b4c830e814e to your computer and use it in GitHub Desktop.
atomic install pkgs ansible
- 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