cancel
Showing results for 
Search instead for 
Did you mean: 
cvb97
Flight Engineer
Flight Engineer
  • 222 Views

ansible-navigator 2.2

Good Day all.

I'm trying to figure out how to create an LV when ansible_facts cannot see the VG.

If I run 'ansible all -m setup'  no ansible_lvm to display

if I run 'ansible all -m setup | grep vg01' I get no result

If I run "ansible all -m command -a 'vgs' -b"  get a result and can see the VG vg01

This is confusing, Is the VG created but ansible_facts does not recognise it ?

How would I create an LV on a VG that is not seen by ansible_facts.

Any feedback would be appreciated.

Labels (1)
1 Reply
Wasim_Raja
Moderator
Moderator
  • 204 Views

@cvb97 Can you try if the below works?

ansible all -m setup -a 'filter=ansible_lvm'

If it does we can write a small task to refresh the facts of lvm data.

0 Kudos
Join the discussion
You must log in to join this conversation.