Good thinking Michael! I was trying to over complicate it :)

Thanks!

Tracy Phillips
Weberize, Inc.


On Wed, Apr 9, 2014 at 10:03 AM, Michael DeHaan <[email protected]> wrote:

> While not the direct answer to your question, ideally you should manage
> all files in yum.repos.d with the "template" directive, making sure each
> one is centrally placed 100% by the ansible server.
>
> If you don't want to do this, you could do something like:
>
>    - shell: ls -l /etc/yum.repos.d
>      register: files
>
>    - shell: grep command here {{ item }}
>      with_items: files.stdout.split()
>
>
>
>
> On Tue, Apr 8, 2014 at 3:28 PM, Tracy Phillips <[email protected]>wrote:
>
>> Hi,
>>
>> What is the best way to ensure gpgcheck=1 in all places of all .repo
>> files in /etc/yum.repos.d/?
>>
>> Thanks,
>>
>> Tracy
>>
>> --
>> 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/CAH%2BeU9c_rjtfRpr9Rk%3D6p%3D7658FAmPoZU%2BuLP26XvTpGQX3nRA%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAH%2BeU9c_rjtfRpr9Rk%3D6p%3D7658FAmPoZU%2BuLP26XvTpGQX3nRA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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/CAEVJ8QPz6R%2BjhO7v4_4cCrRerPpkLOtB%3D%2BoMK_7-eQ5KWk-DnQ%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAEVJ8QPz6R%2BjhO7v4_4cCrRerPpkLOtB%3D%2BoMK_7-eQ5KWk-DnQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAH%2BeU9dKMnpuc-_vS4TkAfDszyh2xHUwc-dWCg7AB8g%3DVkDsdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to