check if var is defined
This commit is contained in:
@@ -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