1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00
ansible_role_base/tasks/main.yml
2021-03-12 22:32:44 +01:00

35 lines
999 B
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