Use to_nice_json to manage packages list

This commit is contained in:
Jeremy Gardais 2019-01-10 16:39:55 +01:00
parent 420e504a83
commit f0054c2897
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@
### Minor changes ### Minor changes
* Give the correct path in comment to see ldap_default_authtok value. * Give the correct path in comment to see ldap_default_authtok value.
* Use to_nice_json to manage packages list.
## v1.2.2 ## v1.2.2

View File

@ -13,13 +13,15 @@
package: package:
name: "{{ item }}" name: "{{ item }}"
state: "{{ sssd_pkg_state }}" state: "{{ sssd_pkg_state }}"
with_items: "{{ sssd_pkg_list }}" with_flattened:
- '{{ sssd_pkg_list | to_nice_json }}'
- name: Remove unwanted packages - name: Remove unwanted packages
package: package:
name: "{{ item }}" name: "{{ item }}"
state: "{{ sssd__unwanted_packages_state }}" state: "{{ sssd__unwanted_packages_state }}"
with_items: "{{ sssd__unwanted_packages_list }}" with_flattened:
- '{{ sssd__unwanted_packages_list | to_nice_json }}'
# ]]] # ]]]
# Update nsswitch.conf # Update nsswitch.conf