ansible-role-seaweedfs icon indicating copy to clipboard operation
ansible-role-seaweedfs copied to clipboard

no hosts matched when use group weed_master, weed_volume and weed_filer

Open patsevanton opened this issue 2 years ago • 2 comments

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 avatar Mar 29 '22 12:03 patsevanton

When use inventory with group all then get no hosts matched

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

patsevanton avatar Mar 29 '22 12:03 patsevanton

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

grozadanut avatar Jul 23 '24 10:07 grozadanut