Creating docker swarm using ansible

+2 votes

I am using the following from github to understand how docker swarm works via ansible https://github.com/patocox/ansible-swarm-do

I followed the steps in README.md I also changed my hosts file after finding several possible solutions on github:

[admin]
IP_ADDRESS ansible_ssh_pass=vagrant ansible_ssh_user=vagrant
[admin:vars]
ansible_password=vagrant

IP_ADDRESS is of the droplet I created on digitalocean. I continue to get this error:

UNREACHABLE! => {"changed": false, "msg": "Authentication failed.", "unreachable": true}

I am executing the command as given in README.md with appropriate API access token.

Sep 26, 2018 in Docker by Hannah
• 18,570 points
2,272 views

1 answer to this question.

0 votes

hello @hannah, You need to use the right values for ansible_ssh_user and ansible_ssh_pass.

You can check them by simply trying to connect directly with SSH:

ssh <SSH_USER>@<IP_ADDRESS>
answered Sep 26, 2018 by Kalgi
• 52,360 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer

How can I achieve high availability of my application using docker swarm?

High Availability is a feature where you ...READ MORE

answered Jul 5, 2019 in Docker by Sirajul
• 59,230 points
917 views
0 votes
1 answer
0 votes
1 answer

How to remove a docker container using Ansible playbook?

Hi@akhtar, You can set the state=absent in your ...READ MORE

answered Sep 20, 2020 in Docker by MD
• 95,440 points
6,131 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,458 views
+2 votes
1 answer
0 votes
1 answer

Interactive shell using Docker Compose

You need to include the following lines ...READ MORE

answered Jul 26, 2018 in Docker by Kalgi
• 52,360 points
6,151 views
0 votes
1 answer

How to remove docker installed using wget

The uninstallation step mentions: sudo apt-get purge -y docker-engine sudo apt-get ...READ MORE

answered Jul 30, 2018 in Docker by Kalgi
• 52,360 points
617 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP