24 lines
550 B
YAML
24 lines
550 B
YAML
---
|
|
- import_tasks: centos-repos.yml
|
|
when: ansible_distribution == "CentOS"
|
|
|
|
- import_tasks: clean.yml
|
|
when: clean | default(false) == true
|
|
|
|
- import_tasks: update.yml
|
|
when: update | default(false) == true
|
|
|
|
- name: Install packages on Fedora
|
|
become: true
|
|
when: ansible_distribution == "Fedora"
|
|
dnf:
|
|
state: latest
|
|
name: "{{ packages_global + packages_fedora }}"
|
|
|
|
- name: Install packages on CentOS
|
|
become: true
|
|
when: ansible_distribution == "CentOS"
|
|
dnf:
|
|
state: latest
|
|
name: "{{ packages_global + packages_centos }}"
|