The first tasks checks if two undefined variables exists:
- name: Check required variables
ansible.builtin.fail: msg="Variable '{{ item }}' is not defined"
when: item not in vars
loop:
- certificate
- certificate_key
- server_name
Then later you use the right variables names (ie ssl_certificate and ssl_certificate_key) :
Nevermind those are variables used in templates (not mentionned in README or defaults).
So you have to pass the cert/key with the above vars split with pipe:
In defaults:
In
tasks/main.yml
The first tasks checks if two undefined variables exists:
Then later you use the right variables names (ie ssl_certificate and ssl_certificate_key) :