mirror of
https://github.com/roles-ansible/ansible_role_packages.git
synced 2024-08-16 10:19:51 +02:00
26 lines
804 B
YAML
26 lines
804 B
YAML
---
|
|
- name: Show Information about target OS (on verbose)
|
|
ansible.builtin.include_tasks: os_info.yml
|
|
|
|
- name: Run simple versionscheck (optional)
|
|
ansible.builtin.include_tasks: versioncheck.yml
|
|
when: submodules_versioncheck | bool
|
|
|
|
- name: Adding additional apt sources (optional)
|
|
ansible.builtin.include_tasks: 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: packages.yml
|
|
|
|
- name: Upgrade all packages to latest
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: "*"
|
|
state: "{{ base__package_state }}"
|
|
when:
|
|
- l3d_pkgs__upgrade_all | bool
|