mirror of
https://github.com/roles-ansible/ansible_role_base.git
synced 2024-08-16 14:29:50 +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
|