Hi all,

I am new to ansible and am looking for some help.  I don't mind finding the 
answer on my own; however, I could use a shove in the right direction.

I need to modify some files (/etc/sysconfig/network-scripts/ifcfg-* 
files).  I was trying to use with_fileglob (among other options), but I 
read somewhere that wont work ( 
https://stackoverflow.com/questions/29831690/ansible-with-fileglob-not-matching-files-with-only-wildcard
 
)

Basically, I am looking to run a loop against all ifcfg-* files.  I want to 
modify some entries (which I can do individually) and delete some entries 
(which I can also do individually), I just don't know how to approach 
looping through all of the files.  I am even unsure if fileglob is the 
right approach.  I would appreciate some education on the matter.  How 
would you approach it?

Thanks,
john


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9d0dc197-97a9-4770-90e1-e902a9299a49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to