Operations Handbook for Cloud Services
Important files:
(all run from the ansible/
directory):
ansible all -i hosts -a "uptime"
ansible-playbook -i hosts main.yml --check --diff
When these commands ask for the SSL key passphrase, you can press enter without providing it if you are not expecting to deploy SSL keys.
ansible-playbook -i hosts main.yml
ansible-playbook -i hosts -l <hostname> main.yml
where <hostname>
is one of the full hostnames from the hosts
file.
ansible all -i hosts -a "apt-get update"
ansible all -i hosts -a "apt-get upgrade -s"
ansible all -i hosts -a "apt-get upgrade -y"