7c632352a0
The behaviour of the `include` module is badly defined (it try to choose between statically importing the tasks and dynamically including them) and can cause problems depending on any number of constraints (mostly if it choose the wrong behaviour). Replace it with the `import_tasks` (always statically import tasks) unless the `include` is in a loop in which case we replace it with `include_tasks` (always dynamically include tasks).
24 lines
507 B
YAML
24 lines
507 B
YAML
---
|
|
|
|
- name: Verify Debian version
|
|
assert:
|
|
that:
|
|
- ansible_distribution == "Debian"
|
|
- ansible_distribution_major_version is version('9', '>=')
|
|
msg: only compatible with Debian >= 9
|
|
when: not (evoacme_disable_debian_check | bool)
|
|
|
|
- import_tasks: certbot.yml
|
|
|
|
- import_tasks: permissions.yml
|
|
|
|
# Enable this task if you want to deploy hooks
|
|
# - include_tasks: evoacme_hook.yml
|
|
# vars:
|
|
# hook_name: "{{ item }}"
|
|
# loop: []
|
|
|
|
- import_tasks: conf.yml
|
|
|
|
- import_tasks: scripts.yml
|