1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00
ansible_role_packages/tasks/main.yml
2020-08-28 14:33:27 +02:00

25 lines
594 B
YAML

---
- include_tasks: os_info.yml
when: print_os_vars | bool
- include_tasks: versioncheck.yml
when: submodules_versioncheck | bool
- include_tasks: sources.yml
when:
- base__add_ethz | bool
- ansible_architecture == 'x86_64'
- ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8
- include_tasks: packages.yml
- name: Upgrade all packages to latest
become: true
package:
name: "*"
state: "{{ base__package_state }}"
when:
- base__upgrade_packages_to_latest_version|bool
- include_tasks: editor.yml
when: editor_is_vim | bool