# 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&amp;upgrade of all machines in inventory

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