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

97 lines
2.5 KiB
YAML
Raw Normal View History

2018-11-12 20:45:12 +01:00
---
2019-07-16 16:53:03 +02:00
- include_tasks: os_info.yml
when: print_os_vars | bool
2019-05-22 10:57:06 +02:00
- include_tasks: versioncheck.yml
2019-07-15 23:07:17 +02:00
when: submodules_versioncheck | bool
2019-07-15 23:09:48 +02:00
- include_tasks: sources.yml
2020-08-12 17:20:30 +02:00
when:
- ansible_os_family == 'Debian'
- base__add_ethz | bool
2020-08-28 10:41:48 +02:00
- ansible_architecture == 'x86_64'
2020-08-28 13:32:16 +02:00
- include_tasks: packages.yml
2019-11-28 16:39:18 +01:00
2019-11-28 16:39:18 +01:00
2020-08-28 13:32:16 +02:00
#- name: Install common base packages [Debian]
# become: yes
# apt:
# package: "{{ debian_packages }}"
# state: present
# update_cache: yes
# cache_valid_time: 43200
# when: ansible_os_family == 'Debian' and ansible_distribution_version != '7' and ansible_distribution_release != 'wheezy' and ansible_machine != 'armv6l'
2018-11-12 20:45:12 +01:00
2020-08-28 13:32:16 +02:00
#- name: Install common base packages [all - wheezy]
# become: yes
# package:
# name: "{{ base_packages_extended }}"
# state: present
# when:
# - ansible_machine != 'armv6l'
# - ansible_distribution_release != 'wheezy'
# - ansible_architecture != 'armv7l'
2019-06-06 14:29:53 +02:00
2020-08-28 13:32:16 +02:00
#- name: Install extended base packages [all - wheezy - rpi]
# become: yes
# package:
# name: "{{ base_packages }}"
# state: present
# when: ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
2019-05-14 17:37:22 +02:00
2018-11-12 21:01:35 +01:00
2020-08-28 13:32:16 +02:00
#-# name: Install common base packages [Fedora]
# become: yes
# package:
# name: "{{ fedora_packages }}"
# state: present
# when: ansible_distribution == 'Fedora'
#
#- name: install packages for everyone except centos/rhel
# become: true
# package:
# name: "{{ packages_for_all_except_rhel }}"
# state: present
# when:
# - ansible_os_family != 'RedHat'
# - ansible_distribution_version != "14.04"
# - ansible_distribution_version != "12.04"
# - ansible_distribution_release != 'wheezy'
# - ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
#- name: Install extra packages
# become: true
# package:
# name: "{{ packages_extra }}"
# state: present
# when:
# - packages_extra is defined
# - packages_extra != '[]'
# - ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
#
#- name: Remove rpcbind, nfs-common
# become: yes
# package:
# name:
# - rpcbind
# - nfs-common
# state: absent
# when:
# - ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
# - ansible_os_family == 'Debian'
#
#- name: Upgrade all packages to latest
# become: true
# package:
# name: "*"
# state: latest
# when:
# - upgrade_packages_to_latest_version|bool
# - ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
2019-07-16 16:26:04 +02:00
- include_tasks: editor.yml
when: editor_is_vim | bool