Skip to content

Instantly share code, notes, and snippets.

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 xiongchiamiov/35b01285910d8f6e4e43b64bfe8522be to your computer and use it in GitHub Desktop.
Save xiongchiamiov/35b01285910d8f6e4e43b64bfe8522be to your computer and use it in GitHub Desktop.
ansible: update all hosts
[$]> ansible all -i hosts.ini --ask-sudo-pass -m apt -a 'update_cache=yes upgrade=safe' --become
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment