2018-11-12 20:45:12 +01:00
|
|
|
---
|
2023-07-26 23:17:15 +02:00
|
|
|
- name: Show Information about target OS (on verbose)
|
2023-10-28 00:16:35 +02:00
|
|
|
ansible.builtin.include_tasks:
|
2024-04-27 02:43:22 +02:00
|
|
|
file: 'os_info.yml'
|
2019-07-16 16:53:03 +02:00
|
|
|
|
2023-07-26 23:17:15 +02:00
|
|
|
- name: Run simple versionscheck (optional)
|
2023-10-28 00:16:35 +02:00
|
|
|
ansible.builtin.include_tasks:
|
2024-04-27 02:43:22 +02:00
|
|
|
file: 'versioncheck.yml'
|
2024-04-27 02:49:52 +02:00
|
|
|
when: packages__submodules_versioncheck | bool
|
2019-07-15 23:07:17 +02:00
|
|
|
|
2023-07-26 23:17:15 +02:00
|
|
|
- name: Adding additional apt sources (optional)
|
2023-10-28 00:16:35 +02:00
|
|
|
ansible.builtin.include_tasks:
|
2024-04-27 02:43:22 +02:00
|
|
|
file: 'sources_ethz.yml'
|
2020-08-12 17:20:30 +02:00
|
|
|
when:
|
2024-04-27 02:43:22 +02:00
|
|
|
- packages__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
|
2021-03-12 22:18:54 +01:00
|
|
|
- ansible_pkg_mgr == "apt"
|
2018-11-14 11:46:29 +01:00
|
|
|
|
2023-07-31 16:45:00 +02:00
|
|
|
- name: Install packages based on selection
|
2023-10-28 00:16:35 +02:00
|
|
|
ansible.builtin.include_tasks:
|
2024-04-27 02:43:22 +02:00
|
|
|
file: 'packages.yml'
|
2018-11-14 11:46:29 +01:00
|
|
|
|
2020-08-28 14:01:22 +02:00
|
|
|
- name: Upgrade all packages to latest
|
|
|
|
become: true
|
2021-03-12 22:18:54 +01:00
|
|
|
ansible.builtin.package:
|
2020-08-28 14:01:22 +02:00
|
|
|
name: "*"
|
2024-07-02 00:36:12 +02:00
|
|
|
state: "{{ packages__package_state }}"
|
2020-08-28 14:01:22 +02:00
|
|
|
when:
|
2024-04-27 02:43:22 +02:00
|
|
|
- packages__upgrade_all | bool
|