Hello, I hope you can understand what I need, my english is not good, i
still learning.
I have a variable
easyrsa_clients:
- name: '{{ client }}'
and this tasks:
- name: "Copy files
copy:
src: '{{ item.src }}'
dest: '{{ item.dest }}'
with_items:
- { src: '{{ easyrsa_dest }}/easyrsa/pki/private/{{ item.name }}.key',
dest: '{{ easyrsa_dest }}/keys' }
- { src: '{{ easyrsa_dest }}/easyrsa/issued/{{ item.name }}.crt',
dest: '{{ easyrsa_dest }}/keys' }
I need to be able to interact with the value of the variable
easyrsa_clients within the parameter with_item.
I think I should use easyrsa_clients.item.name but I don’t know.
Any ideas??
Regards
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAGUDtnmYWR0x_PLabnytENx%2BrochGEy5MSAU7SRtXW1ofsusZA%40mail.gmail.com.