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,410 points
1,153 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
• 51,950 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
• 58,020 points
283 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 in Docker by MD
• 57,960 points
21 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
687 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
• 51,950 points
3,052 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
• 51,950 points
135 views