with:

   service: name=redis state=started enabled=yes

you don't need to call chkconfig



On Fri, Jan 8, 2016 at 12:06 PM, James Jelinek <[email protected]> wrote:
> Thanks, I did some digging and figured it out.  This playbook takes care of
> everything now, just had to do a little digging on enabling the repo via
> yum.
>
> ---
>
> - hosts: test
>
>   remote_user: deploy
>
>   sudo: True
>
>   tasks:
>
>   - name: ensure redis remi repo is installed
>
>     yum:
>
>      name: http://rpms.remirepo.net/enterprise/remi-release-6.rpm
>
>      state: present
>
>   - name: ensure remi repo is enabled and redis is installed
>
>     yum: name=redis enablerepo=remi
>
>   - name: ensure redis is set to start at boot
>
>     action: command /sbin/chkconfig redis on
>
>   - name: ensure redis is started
>
>     service: name=redis state=started
>
>
> On Friday, January 8, 2016 at 10:06:41 AM UTC-6, Co S wrote:
>>
>> Try to use "yumrepo" module to enable yum repository.
>
> --
> 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/2b77fb6a-ef42-465b-83fe-20da4db39a30%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian Coca

-- 
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/CAJ5XC8%3DZwnq8bz%3Db9Ox3-t%2BJXpaS7X4pzAd9H-A39WGAMDMzww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to