commit 7e4458e16802d50d2b165461bfc64c5fa9ac45a5
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Jul 31 11:14:14 2019 +0200
Add base package erase
roles/base/tasks/main.yml | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml
index cb4e0a8..05531b6 100644
--- a/roles/base/tasks/main.yml
+++ b/roles/base/tasks/main.yml
@@ -134,32 +134,36 @@
- base
- name: dist pkgs to remove (yum)
- package: state=absent name={{ item }}
- with_items:
- - "{{ base_pkgs_erase }}"
+ package:
+ state: absent
+ name: "{{ base_pkgs_erase }}"
tags:
- packages
- base
when: ansible_distribution_major_version|int < 22
- name: dist pkgs to install (yum)
- package: state=present name={{ item }}
- with_items:
- - "{{ base_pkgs_inst }}"
+ package:
+ state: present
+ name: "{{ base_pkgs_inst }}"
tags:
- packages
- base
when: ansible_distribution_major_version|int < 22
- name: dist pkgs to remove (dnf)
- dnf: state=absent name="{{ base_pkgs_erase }}"
+ dnf:
+ state: absent
+ name: "{{ base_pkgs_erase }}"
tags:
- packages
- base
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not
defined
- name: dist pkgs to install (dnf)
- dnf: state=present name="{{ base_pkgs_inst }}"
+ dnf:
+ state: present
+ name: "{{ base_pkgs_inst }}"
tags:
- packages
- base
Show replies by date