ansible-roles/apt/tasks/main.yml

54 lines
1 KiB
YAML
Raw Normal View History

---
2017-11-21 10:17:46 +01:00
- name: "Compatibility check"
fail:
2017-08-23 01:49:27 +02:00
msg: only compatible with Debian >= 8
when:
- ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<')
tags:
2019-06-21 10:18:54 +02:00
- apt
- name: Custom configuration
import_tasks: config.yml
when: apt_config | bool
tags:
2019-06-21 10:18:54 +02:00
- apt
2017-06-07 09:53:42 +02:00
- name: Install basics repositories
import_tasks: basics.yml
when: apt_install_basics | bool
tags:
2019-06-21 10:18:54 +02:00
- apt
- name: Install APT Backports repository
import_tasks: backports.yml
when: apt_install_backports | bool
tags:
2019-06-21 10:18:54 +02:00
- apt
2017-05-21 11:00:46 +02:00
- name: Install Evolix Public APT repository
import_tasks: evolix_public.yml
when: apt_install_evolix_public | bool
tags:
2019-06-21 10:18:54 +02:00
- apt
- name: Install check for packages marked hold
import_tasks: hold_packages.yml
when: apt_install_hold_packages | bool
tags:
2019-06-21 10:18:54 +02:00
- 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