1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00
ansible_role_packages/tasks/main.yml

27 lines
823 B
YAML
Raw Normal View History

2018-11-12 20:45:12 +01:00
---
- name: Show Information about target OS (on verbose)
ansible.builtin.include_tasks: os_info.yml
2019-07-16 16:53:03 +02:00
- name: Run simple versionscheck (optional)
ansible.builtin.include_tasks: versioncheck.yml
2019-07-15 23:07:17 +02:00
when: submodules_versioncheck | bool
- name: Adding additional apt sources (optional)
ansible.builtin.include_tasks: sources_ethz.yml
2020-08-12 17:20:30 +02:00
when:
2023-07-31 16:45:00 +02:00
- l3d_pkgs__adding_ethz | bool
2020-08-28 10:41:48 +02:00
- ansible_architecture == 'x86_64'
2021-03-12 22:32:44 +01:00
- ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8
- ansible_pkg_mgr == "apt"
2023-07-31 16:45:00 +02:00
- name: Install packages based on selection
ansible.builtin.include_tasks: packages.yml
2020-08-28 14:01:22 +02:00
- name: Upgrade all packages to latest
become: true
ansible.builtin.package:
2020-08-28 14:01:22 +02:00
name: "*"
state: "{{ base__package_state }}"
when:
- base__upgrade_packages_to_latest_version | bool