Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with traefik ´main.yml line 34 #3

Open
R-Hammer opened this issue Nov 27, 2022 · 0 comments
Open

Error with traefik ´main.yml line 34 #3

R-Hammer opened this issue Nov 27, 2022 · 0 comments

Comments

@R-Hammer
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant