# uname -a
OpenBSD apollo.autonlab.org 6.1 GENERIC.MP#6 amd64
# syspatch -l
001_dhcpd
002_vmmfpu
003_libressl
004_softraid_concat
005_pf_src_tracking
006_libssl
007_freetype
008_exec_subr
009_icmp_opts


# more update-dns.yaml
     
---
 - hosts: dnsservers
   remote_user: root
   tasks:
   - name: push zone files  
   # This should copy everything in the directory; the trailing slash is
   # necessary to copy only the contents of the dir, much like rsync
     copy: src=/var/unbound/etc/autonlab/
dest=/var/unbound/etc/autonlab/ owner=root group=wheel mode=0644
   - name: restart unbound
     service:
       name: unbound
       enabled: yes
       state: restarted
...


# ansible-playbook update-dns --check 
ksh: ansible-playbook: Permission denied

I read this 

ansible. The copy module of Ansible added a newline to the value of the
content attribute in case it was not present. This behavior is
non-standard and was not documented. It has been reverted in the
ansible-2.1.2.0p0 package. If you previously relied on this behavior you
will need to explicitly add \n to your playbooks.

but I am still not sure what am I doing wrong. Any hints?


Predrag

Reply via email to