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 thesabear@10.27.27.18

 

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

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

 


Revision #1
Created 2024-07-06 14:32:31 UTC by thesabear
Updated 2024-07-06 14:39:56 UTC by thesabear