Creating docker swarm using ansible

+2 votes

I am using the following from github to understand how docker swarm works via ansible

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

IP_ADDRESS ansible_ssh_pass=vagrant ansible_ssh_user=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 with appropriate API access token.

Sep 26, 2018 in Docker by Hannah
• 18,030 points

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:

answered Sep 26, 2018 by Kalgi
• 51,830 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
• 50,440 points
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,850 points
+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,400 points
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
• 51,830 points
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
• 51,830 points