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
L3D e15db99888
Update main.yml
fix packages__package_state name

Signed-off-by: L3D <l3d@c3woc.de>
2024-07-02 00:36:12 +02:00

30 lines
866 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: packages__submodules_versioncheck | bool
- name: Adding additional apt sources (optional)
ansible.builtin.include_tasks:
file: 'sources_ethz.yml'
when:
- packages__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: "{{ packages__package_state }}"
when:
- packages__upgrade_all | bool