Skip to main content

Ansible

To copy the ansible user ssh key to a VM or container:

ssh-copy-id -i ~/.ssh/ansible.pub -p PORTOFSERVER thesabear@IPOFSERVER
ssh-copy-id -i ~/.ssh/ansible.pub -p 10018 [email protected]

 

To run a manual update&upgrade of all machines in inventory

ansible all -m apt -a "upgrade=dist" --become --ask-become-pass