check if var is defined
This commit is contained in:
1 parent
9fe0b3ac62
commit
6261547c1c
1 file changed
+6
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user