nmarus / docker-swarm-ansible Goto Github PK
View Code? Open in Web Editor NEWAnsible Playbook that deploys 3 node Docker Swarm with GlusterFS, Traefik, and Portainer Services
Ansible Playbook that deploys 3 node Docker Swarm with GlusterFS, Traefik, and Portainer Services
and also:
thanks
Hi, i’m trying to run this without glusterFS and HA-Proxy and with ssh key on cloud servers.
Goal is to run a monogdb replica set and some other services.
For that I changed the host-file to this:
[swarm_managers]
First_ip
secound_ip
third_ip
[all:vars]
ansible_connection=ssh
ansible_user=my_user_with_sodo
device2_hdd_dev=/dev/sdb
And main.yml in roles/docker/ to this:
---
- import_tasks: docker.yml
# - import_tasks: plugins.yml
The error I get, when running
ansible-playbook --inventory-file=hosts-vagrant playbooks/install.yml
is:
[WARNING]: Could not match supplied host pattern, ignoring: swarm_workers
[WARNING]: Could not match supplied host pattern, ignoring: gluster_nodes
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/git/server-setup-ansible/playbooks/roles/traefik/tasks/main.yml': line 34, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Deploy stack from a compose file (on first swarm node)
^ here
What have I done wrong?
Any help would be great!
I was trying to use your asbible playbook, its very well written but I think you did not cared about joining the worker node, which it works fine with just the managers , if we use worker nodes as well the asible playbook breaks here:
You calling the playbook swarm-worker but the task is trying to join the node as manager.
as docker node ls wont work on the worker node.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.