source: main/waeup-ansible/UPGRADE_HOSTS.sh @ 17011

Last change on this file since 17011 was 14033, checked in by uli, 8 years ago

New versions of ansible upgrade.

File size: 928 bytes
Line 
1# run `apt-get upgrade` on all waeup hosts
2
3## use this if you are sure there are no problems ahead (adventurous)
4# ansible -i hosts all -K -b -m shell -a "/usr/bin/aptitude -y safe-upgrade"
5
6## use this version to abort in any complex situation (safe way)
7#ansible -i hosts all -K -b -m shell -a "/usr/bin/apt-get -y --trivial-only upgrade"
8
9## use this to enter the sudo password on the commandline
10#ansible -i hosts all -e "ansible_become_pass=PW_HERE" -b -m shell -a "/usr/bin/apt-get -y upgrade"
11
12## with the password stored in group_vars/production.yml, we do not have to enter passwords.
13## the file should look like: (w/o any hashes/spaces in front)
14## ---
15## ansible_sudo_pass: my-password-on-waeup-servers
16##
17#ansible -i hosts all -b -m shell -a "/usr/bin/apt-get -y upgrade"
18
19## use the `apt` module (instead of `shell`), that better suites our tasks
20ansible -i hosts all -b -m apt -a "upgrade=safe update_cache=yes"
Note: See TracBrowser for help on using the repository browser.