Docker image to use Ansible without install it
1.7K
Docker image to use Ansible without install it
(If needed) setup openssh-server
# apt-get install openssh-server
Copy your ssh keys into destination servers / desktops
ssh-copy-id -i /home/sineverba/.ssh/id_ed25519.pub [email protected]
Be sure that you can log to the server / desktop without password
Launch Ansible with
docker run \
--rm -it \
-v ${pwd}/playbook:/playbook:ro \
-v ~/.ssh:/ssh:ro \
--name ansible \
sineverba/ansible:latest \
# -v or -vvv or -vvvv for debug
# --skip-tags "pihole" \ # Add --skip-tags to skip tags, in the form of --skip-tags "a,b,c"
-i /playbook/inventory.yml \
/playbook/desktop.yml \ # select your playbook
-e username=user \ # select your username
-e ansible_become_pass=yourRootPasswordHere # your root passwd
To pass the password of sudo, append --extra-vars 'ansible_become_pass=your-password'
$ make upgrade
Content type
Image
Digest
sha256:2eddabd29…
Size
227.6 MB
Last updated
4 months ago
docker pull sineverba/ansible