Hi,

thanks for answering, but:

> Am 05.02.2021 um 17:36 schrieb 'Felix Fontein' via Ansible Project 
> <[email protected]>:
> 
> you are not templating the parameters,

How and where  should I template the parameters?

I tried things like
        ca.ttl | int
in the lr_nsupdate role, with no luck.

My use case is with an ad-hoc playbook, which calls a role and gets the role 
args from command line or file:

ansible-playbook -l localhost -v -e "@files/nsupdate_extravars.yaml" 
playbooks/ad_hoc.yaml

---
# playbooks/ad_hoc.yaml

- hosts: all
  tasks:

  - name: Execute role {{ role_name }} with args {{ role_args }}
    include_role:
      name: "{{ role_name }}"
    vars:
      - ca: "{{ role_args }}“

Thanks, Axel
---
PGP-Key: CDE74120  ☀  computing @ chaos claudius

-- 
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/EF3AB63C-3930-43C5-9500-534F3EAB1F17%40Chaos1.DE.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to