I also know some non-ansible ways of doing this, but I am interested to see if it can be done entirely in Ansible.
On Aug 5, 2014, at 7:06 PM, Adam Heath <
ad...@brainfood.com> wrote:
> On debian, I could install the program 'symlinks'. I don't know if it is available elsewhere. It might be able to help.
>
> On 08/05/2014 12:05 PM, Dan Vaida wrote:
>> Hello guys,
>>
>> I am trying to get my head around parsing a folder for its files and creating symlinks for those files found (depth 0) and place them in another directory.
>>
>> Example: parse sites-available/ and create symlinks in sites-enabled/ with relative paths.
>>
>> I know one can just use the command/shell modules or even create a task and register the result of a 'ls' command for example and then parse them... but what about the relative path?
>> One could also use a script like Apache provides for example: a2ensite but what about NGINX?
>>
>> Trying now the 'with_fileglob' but the task just skips...
>>
>> Cheers.
>> --
>> 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
> You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.