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

30 lines
844 B
YAML

---
- name: Show Information about target OS (on verbose)
ansible.builtin.include_tasks:
file: os_info.yml
- name: Run simple versionscheck (optional)
ansible.builtin.include_tasks:
file: versioncheck.yml
when: submodules_versioncheck | bool
- name: Adding additional apt sources (optional)
ansible.builtin.include_tasks:
file: sources_ethz.yml
when:
- l3d_pkgs__adding_ethz | bool
- ansible_architecture == 'x86_64'
- ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8
- ansible_pkg_mgr == "apt"
- name: Install packages based on selection
ansible.builtin.include_tasks:
file: packages.yml
- name: Upgrade all packages to latest
become: true
ansible.builtin.package:
name: "*"
state: "{{ base__package_state }}"
when:
- l3d_pkgs__upgrade_all | bool