Changeset 14033 for main/waeup-ansible/UPGRADE_HOSTS.sh
- Timestamp:
- 17 Jul 2016, 07:55:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup-ansible/UPGRADE_HOSTS.sh
r13993 r14033 3 3 ## use this if you are sure there are no problems ahead (adventurous) 4 4 # ansible -i hosts all -K -b -m shell -a "/usr/bin/aptitude -y safe-upgrade" 5 5 6 ## use this version to abort in any complex situation (safe way) 6 ansible -i hosts all -K -b -m shell -a "/usr/bin/apt-get -y --trivial-only upgrade" 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 20 ansible -i hosts all -b -m apt -a "upgrade=safe update_cache=yes"
Note: See TracChangeset for help on using the changeset viewer.