Ansible

From wiki
Jump to: navigation, search


Export ANSIBLE_INVENTORY=/storage/home/users/ansible/hosts

Or

Export ANSIBLE_INVENTORY=/storage/home/users/ansible/hosts

ansible-playbook nodes.yml -e @vault/marvinNodes.yml --vault-password-file /storage/home/users/ansible/.vault_pass.txt

To update the guppy version

update the rpm in  /ansible/roles/centos-base/files/

change the line on the "install RPMs" task (starts line 204 currently) that says "with items" to the new file name.


ansible-playbook updateCentosNodes.yml -e @vault/marvinNodes.yml --vault-password-file /ansible/.vault_pass.txt


runs yum update on all of the nodes.