Skip to content

Instantly share code, notes, and snippets.

@noxqsgit
Last active August 29, 2015 14:04
Show Gist options
  • Save noxqsgit/9629d02a30f76e9d275f to your computer and use it in GitHub Desktop.
Save noxqsgit/9629d02a30f76e9d275f to your computer and use it in GitHub Desktop.
update servers w/ ansible
LC_ALL=C ansible -i hosts -m shell -a 'aptitude update' all --sudo --ask-sudo-pass
LC_ALL=C ansible -i hosts -m shell -a 'aptitude safe-upgrade -y -s' all
LC_ALL=C ansible -i hosts -m shell -a 'DEBIAN_FRONTEND=noninteractive aptitude safe-upgrade -y' all --sudo --ask-sudo-pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment