You could use module_defaults
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_module_defaults.html
- template:
owner: root
group: radiusd
mode: "0640"
module_defaults:
template: "{{ item }}"
loop:
- { src: clients.conf.j2, dest: /etc/raddb/cl
I'm not sure what you are trying to say. This doesn't work because what I'm
proposing doesn't exist.
But I'm wondering if it is worth proposing it as an enhancement.
On 10/31/23 13:23, Avinash Jadhav wrote:
> Please try this one
>
> - template:
> args_var: item
> owner: root
> group
Please try this one
- template:
args_var: item
owner: root
group: radiusd
mode: "0640"
loop:
- { src: clients.conf.j2, dest: /etc/raddb/clients.conf }
- { src: proxy.conf.j2, dest: /etc/raddb/proxy.conf }
On Wed, 1 Nov, 2023, 00:50 Orion Poplawski, wrote:
> I find mys