On 19.10.2018 10:03, Jost wrote:
variable in defaults/main.yml
plugins_dir: 'usr/lib/check_mk_agent/plugins'
- name: install plugins
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0755
owner: root
group: root
with_items:
- { src: mk_logins,dest: plugins_dir }
- { src: symantec_av,dest: plugins_dir }
Your plugins_dir in these two last line is not a variable since it's
missing {{ }} around them so they are literally the string plugins_dir.
TASK [check-mk-agent : install plugins]
***********************************************************************************
changed: [rhl1] => (item={u'dest': u'plugins_dir', u'src':
u'mk_logins'})
changed: [rhl1] => (item={u'dest': u'plugins_dir', u'src':
u'symantec_av'})
As you can see here dest contains 'plugins_dir' and not the content of
the variable plugins_dir.
--
Kai Stian Olstad
--
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/c8491a9ef05428cc402637716b787114%40olstad.com.
For more options, visit https://groups.google.com/d/optout.