Skip to content
Advertisement

Tag: ansible-facts

How to store command output into array in Ansible?

Essentially, I want to be able to handle “wildcard filenames” in Linux using ansible. In essence, this means using the ls command with part of a filename followed by an “*” so that it will list ONLY certain files. However, I cannot store the output properly in a variable as there will likely be more than one filename returned. Thus,

Advertisement