V
V
vitkuz5732021-02-02 17:32:05
Ansible
vitkuz573, 2021-02-02 17:32:05

How to solve error 207 correctly?

There is a playbook with lines like this:

dest: "/var/www/_letsencrypt/{{ challenge['challenge_data']['{{ domain_name }}']['http-01']['resource'] }}"
    content: "{{ challenge['challenge_data']['{{ domain_name }}']['http-01']['resource_value'] }}"


When starting ansible-lint, an error appears:
[207] Nested jinja pattern

And when starting the playbook on the execution of this play, the process is interrupted with an error.
Question: how to properly organize nested variable domain_name in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2021-02-03
@opium

Take a ready-made playbook for letsencrypt, their wagon and cart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question