Enter code here...

---
- hosts: all
  remote_user: root
  serial: 20
  tasks:
  - name: Install nscd
    yum: pkg=nscd state=latest disable_gpg_check=no
  - name: Transfer the conf file
    copy: src=files/etc/nscd.conf dest=/etc/nscd.conf mode=0644 backup=yes
  - name: Configure service...
    service: name=nscd state=restarted enabled=yes
  - name: Ensure nscd is started at boot time
    action: command /sbin/chkconfig nscd on
  - name: deploy standard resolv.conf
    copy: src=files/etc/resolv.conf dest=/etc/resolv.conf mode=0644 backup=
yes




My files are pretty tiny:

mst_nscd]# ls -la files/etc/
total 16
drwxr-xr-x 2 root root 4096 Oct  2 18:58 .
drwxr-xr-x 3 root root 4096 Aug 31 18:21 ..
-rw-r--r-- 1 root root  833 Sep  1 20:40 nscd.conf
-rw-r--r-- 1 root root   96 Oct  2 15:07 resolv.con


I am running the /sbin/chkconfig nscd on because the enabled = is not 
working because I assumed I was running into 
this: https://github.com/ansible/ansible-modules-core/issues/237.

Thank you all for the kind responses!

On Friday, October 9, 2015 at 11:21:08 AM UTC-4, Brian Coca wrote:
>
> can you show the play that is producing this issue?  Plenty of people 
> use the yum module with those versions and do not report such an 
> issue. 
>
>
>
> -- 
> 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/5c2f41b0-e404-4e97-8118-3b01736762fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to