commit 05c4bb21d6e45ea4b1144ff175fe44534ab29347
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Jul 31 11:06:12 2019 +0200
Use yaml notation instead of the ansible notation
roles/base/tasks/main.yml | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml
index c6d39d2..cb4e0a8 100644
--- a/roles/base/tasks/main.yml
+++ b/roles/base/tasks/main.yml
@@ -86,16 +86,18 @@
- base
- name: global default packages to install (yum)
- package: state=present name={{ item }}
- with_items:
- - "{{ global_pkgs_inst }}"
+ package:
+ state: present
+ name: "{{ global_pkgs_inst }}"
tags:
- packages
- base
when: ansible_distribution_major_version|int < 22 and
ansible_distribution_major_version|int != 8
- name: global default packages to install (dnf)
- dnf: state=present name="{{ global_pkgs_inst }}"
+ dnf:
+ state: present
+ name: "{{ global_pkgs_inst }}"
tags:
- packages
- base
Show replies by date