2018-11-12 20:45:12 +01:00
|
|
|
---
|
2021-03-12 22:18:54 +01:00
|
|
|
- name: optional print os infos
|
|
|
|
ansible.builtin.include_tasks: os_info.yml
|
2019-07-16 16:53:03 +02:00
|
|
|
when: print_os_vars | bool
|
|
|
|
|
2021-03-12 22:18:54 +01:00
|
|
|
- name: optional versionscheck
|
|
|
|
ansible.builtin.include_tasks: versioncheck.yml
|
2019-07-15 23:07:17 +02:00
|
|
|
when: submodules_versioncheck | bool
|
|
|
|
|
2021-03-12 22:18:54 +01:00
|
|
|
- name: optional add apt sources
|
|
|
|
ansible.builtin.include_tasks: sources.yml
|
2020-08-12 17:20:30 +02:00
|
|
|
when:
|
|
|
|
- base__add_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
|
|
|
|
2021-03-12 22:18:54 +01:00
|
|
|
- name: install packages
|
|
|
|
ansible.builtin.include_tasks: 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: "*"
|
|
|
|
state: "{{ base__package_state }}"
|
|
|
|
when:
|
|
|
|
- base__upgrade_packages_to_latest_version|bool
|
2019-07-16 16:26:04 +02:00
|
|
|
|
2021-03-12 22:18:54 +01:00
|
|
|
- name: optional configure editor
|
|
|
|
ansible.builtin.include_tasks: editor.yml
|
2020-10-29 01:42:23 +01:00
|
|
|
when: base__install_vim | bool
|
|
|
|
|
2021-03-12 22:18:54 +01:00
|
|
|
- name: optional install keychain
|
|
|
|
ansible.builtin.include_tasks: keychain.yml
|
2020-10-29 01:42:23 +01:00
|
|
|
when: base__install_keychain | bool
|
2021-05-25 18:25:26 +02:00
|
|
|
|
|
|
|
- name: install optional packages
|
|
|
|
become: true
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ base__extra_packages }}"
|
|
|
|
state: present
|