docker-swarm-ansible
docker-swarm-ansible copied to clipboard
Error with traefik ´main.yml line 34
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!