changed "when" statement
if using '{{}}’, you need to quote the whole line
This commit is contained in:
@@ -7,6 +7,6 @@
|
|||||||
msg: Debug
|
msg: Debug
|
||||||
# install software
|
# install software
|
||||||
- import_tasks: install_apache.yml
|
- import_tasks: install_apache.yml
|
||||||
when: "{{ apache }}" is true
|
when: "{{ apache }} == true"
|
||||||
- import_tasks: install_nginx.yml
|
- import_tasks: install_nginx.yml
|
||||||
when: "{{ nginx }}" is true
|
when: "{{ nginx }} == true"
|
||||||
Reference in New Issue
Block a user