2019-11-17 04:19:54 +00:00
|
|
|
---
|
2020-02-12 04:17:43 +00:00
|
|
|
- import_tasks: bindings.yml
|
|
|
|
when: omni_pkg_bindings == true
|
|
|
|
|
|
|
|
- import_tasks: repos.yml
|
|
|
|
when: omni_pkg_repos == true
|
2019-11-17 04:19:54 +00:00
|
|
|
|
|
|
|
- import_tasks: clean.yml
|
2020-02-12 04:17:43 +00:00
|
|
|
when: omni_pkg_clean == true
|
2019-11-17 04:19:54 +00:00
|
|
|
|
|
|
|
- import_tasks: update.yml
|
2020-02-12 04:17:43 +00:00
|
|
|
when: omni_pkg_update == true
|
2019-11-17 04:19:54 +00:00
|
|
|
|
|
|
|
- name: Install packages on Fedora
|
|
|
|
become: true
|
|
|
|
when: ansible_distribution == "Fedora"
|
|
|
|
dnf:
|
|
|
|
state: latest
|
2020-02-12 04:17:43 +00:00
|
|
|
name: "{{ omni_packages_global + omni_packages_fedora }}"
|
2019-11-17 04:19:54 +00:00
|
|
|
|
2020-02-12 04:17:43 +00:00
|
|
|
# NOTE: This is currently horrifically broken. See the ongoing drama around
|
|
|
|
# systemd-networkd on cent8. Basically triggering an update- or an install- will give
|
|
|
|
# a conflict error due to the spicy-jankaroni-with-extra-cheese edition of
|
|
|
|
# systemd-networkd I'm running. We can exclude "systemd*", but we need to install
|
|
|
|
# systemd-devel so then we get a package not found error. Its a truly stupid problem
|
|
|
|
# that will hopefully all go away when this bug gets fixed and systemd-networkd becomes
|
|
|
|
# available in EPEL:
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1789146
|
|
|
|
- name: Install packages on CentOS 8
|
2019-11-17 04:19:54 +00:00
|
|
|
become: true
|
2020-02-12 04:17:43 +00:00
|
|
|
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "8"
|
2019-11-17 04:19:54 +00:00
|
|
|
dnf:
|
|
|
|
state: latest
|
2020-02-12 04:17:43 +00:00
|
|
|
name: "{{ omni_packages_global + omni_packages_centos_8 }}"
|
|
|
|
|
|
|
|
- name: Install packages on CentOS 7
|
|
|
|
become: true
|
|
|
|
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
|
|
|
|
yum:
|
|
|
|
state: latest
|
|
|
|
name: "{{ omni_packages_global + omni_packages_centos_7 }}"
|