Hi,
> But right after that, I have the exact same statement in when:
>
> - name: "Implement http-01 challenge files"
> copy:
> content: "{{
> acme_challenge_mydomain['challenge_data'][inventory_hostname]['http-01']['resource_value']
>
> }}"
> dest: "/opt/FileMaker/FileMaker Server/HTTPServer/htdocs/{{
> acme_challenge_mydomain['challenge_data'][inventory_hostname]['http-01']['resource']
>
> }}"
> owner: root
> group: root
> mode: u=rw,g=r,o=r
> when: *acme_challenge_mydomain is changed and inventory_hostname in
> acme_challenge_mydomain['challenge_data']*
>
> ...but this task is still returning this error:
unfortunately in the text version of your email, all indentation is
gone. But in the HTML view online
(https://groups.google.com/g/ansible-project/c/cKmSS0VhyYo/m/oDCXtZFLAAAJ)
one can see that `when:` is indented at the wrong level. It is not an
option to the `copy` module, but belongs on the task level, i.e. the
same level as `copy:`.
If you remove two spaces before `when:` it should work.
Cheers,
Felix
--
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/20220118195646.4dcbb921%40rovaniemi.