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

no hosts matched when use group weed_master, weed_volume and weed_filer #11

Open
patsevanton opened this issue Mar 29, 2022 · 2 comments

Comments

@patsevanton
Copy link
Contributor

patsevanton commented Mar 29, 2022

Hello! Thanks for role!
I try install seaweedfs on multiple nodes and get no hosts matched
Inventory:

[weed_master]
51.250.17.31
[weed_volume]
51.250.17.31
[weed_filer]
51.250.17.31
[all:vars]
ansible_user=ubuntu

Playbook

---
- hosts: seaweedfs
  become: true
  roles:
    - role: ansible-role-seaweedfs
      weed_version: 2.74

Run:

ansible-galaxy install --force git+https://github.com/bmillemathias/ansible-role-seaweedfs.git,main
ansible-playbook -i host.ini playbook.yml -bK
@patsevanton
Copy link
Contributor Author

When use inventory with group all then get no hosts matched

[all]
51.250.17.31
[all:vars]
ansible_user=ubuntu

@grozadanut
Copy link

grozadanut commented Jul 23, 2024

I believe it's because you don't have the seaweedfs group. Change your playbook to:

---
- hosts: all
  become: true
  roles:
    - role: ansible-role-seaweedfs
      weed_version: 2.74

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

2 participants