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).
54 lines
1 KiB
YAML
54 lines
1 KiB
YAML
---
|
|
|
|
- name: "Compatibility check"
|
|
fail:
|
|
msg: only compatible with Debian >= 8
|
|
when:
|
|
- ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<')
|
|
tags:
|
|
- apt
|
|
|
|
- name: Custom configuration
|
|
import_tasks: config.yml
|
|
when: apt_config | bool
|
|
tags:
|
|
- apt
|
|
|
|
- name: Install basics repositories
|
|
import_tasks: basics.yml
|
|
when: apt_install_basics | bool
|
|
tags:
|
|
- apt
|
|
|
|
- name: Install APT Backports repository
|
|
import_tasks: backports.yml
|
|
when: apt_install_backports | bool
|
|
tags:
|
|
- apt
|
|
|
|
- name: Install Evolix Public APT repository
|
|
import_tasks: evolix_public.yml
|
|
when: apt_install_evolix_public | bool
|
|
tags:
|
|
- apt
|
|
|
|
- name: Install check for packages marked hold
|
|
import_tasks: hold_packages.yml
|
|
when: apt_install_hold_packages | bool
|
|
tags:
|
|
- apt
|
|
|
|
- name: Updating APT cache
|
|
apt:
|
|
update_cache: yes
|
|
changed_when: False
|
|
tags:
|
|
- apt
|
|
|
|
- name: Upgrading system
|
|
apt:
|
|
upgrade: dist
|
|
when: apt_upgrade | bool
|
|
tags:
|
|
- apt
|