Files
ansible-pull/roles/webserver/tasks/main.yml
Rene 2463fc198d changed "when" statement
if using '{{}}’, you need to quote the whole line
2022-02-17 21:38:18 +01:00

12 lines
293 B
YAML

# Load distro-specific variables
- include_vars: "{{ ansible_distribution }}.yml"
tags: always
- block:
- debug:
msg: Debug
# install software
- import_tasks: install_apache.yml
when: "{{ apache }} == true"
- import_tasks: install_nginx.yml
when: "{{ nginx }} == true"