21 lines
728 B
Markdown
Raw Normal View History

2023-08-17 16:02:52 +02:00
# Ansible-Deploy-Docker
2024-03-22 13:29:02 +01:00
Simple ansible playbook to deploy latest docker and docker-compose via ansible.
2023-08-17 16:04:42 +02:00
2024-03-22 13:29:02 +01:00
## Edit configs
2023-08-17 16:07:11 +02:00
2024-03-22 13:29:02 +01:00
### add_ansible_user.sh
2023-10-21 13:15:23 +02:00
2024-03-22 13:29:02 +01:00
__<ANSIBLE_USERNAME>__ -- Set a username for ansible. Example "ansible"
__<YOUR_PUBKEY>__ -- Paste your public key.
__UID_INT__ -- This is optional. By default it is set to 1600. It makes it easier to distinguish ansible user from the rest
### DockerEngineInstall.yml
The only thing to change here is __<CHANGE_HOSTS>__ at line 3. There you need to input IP of computers that ansible will run this playbook on.
## PS
In Proxmox if you have a VM template it is possible to paste multiple pubkeys. Go to template -> Cloud-Init -> SSH public key -> edit -> paste your pubkeys.