check if var is defined

This commit is contained in:
2022-06-23 23:25:08 +02:00
parent 9fe0b3ac62
commit 6261547c1c

View File

@@ -7,9 +7,13 @@
msg: Debug msg: Debug
# install software # install software
- import_tasks: install_apache.yml - import_tasks: install_apache.yml
when: apache == true when:
- apache is defined
- apache == true
- import_tasks: install_nginx.yml - import_tasks: install_nginx.yml
when: nginx == true when:
- nginx is defined
- nginx == true
- name: webserver | certbot | install certbot - name: webserver | certbot | install certbot
package: package:
name: certbot name: certbot