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
• 14,070 points
91 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
• 40,420 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 in Docker by Sirajul
• 25,180 points
142 views
0 votes
1 answer
0 votes
1 answer

How to send docker using terraform to aws cloudwatch?

Check if you set all the permissions ...READ MORE

answered Jun 7, 2018 in Docker by DareDev
• 6,810 points
375 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
145 views
0 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
• 40,420 points
756 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
• 40,420 points
46 views