mirror of
https://github.com/roles-ansible/ansible_role_packages.git
synced 2024-08-16 10:19:51 +02:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
---
|
|
- name: optional print os infos
|
|
ansible.builtin.include_tasks: os_info.yml
|
|
when: print_os_vars | bool
|
|
|
|
- name: optional versionscheck
|
|
ansible.builtin.include_tasks: versioncheck.yml
|
|
when: submodules_versioncheck | bool
|
|
|
|
- name: optional add apt sources
|
|
ansible.builtin.include_tasks: sources.yml
|
|
when:
|
|
- base__add_ethz | bool
|
|
- ansible_architecture == 'x86_64'
|
|
- ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8
|
|
- ansible_pkg_mgr == "apt"
|
|
|
|
- name: install packages
|
|
ansible.builtin.include_tasks: packages.yml
|
|
|
|
- name: Upgrade all packages to latest
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: "*"
|
|
state: "{{ base__package_state }}"
|
|
when:
|
|
- base__upgrade_packages_to_latest_version|bool
|
|
|
|
- name: optional configure editor
|
|
ansible.builtin.include_tasks: editor.yml
|
|
when: base__install_vim | bool
|
|
|
|
- name: optional install keychain
|
|
ansible.builtin.include_tasks: keychain.yml
|
|
when: base__install_keychain | bool
|
|
|
|
- name: install optional packages
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: "{{ base__extra_packages }}"
|
|
state: present
|