Use 'loop' syntax instead of 'with_dict'

This commit is contained in:
Jérémy Lecour 2021-05-04 14:20:53 +02:00 committed by Jérémy Lecour
parent 5138065059
commit 07fd6451e1
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ The **patch** part changes incrementally at each release.
### Changed
* Use 'loop' syntax instead of 'with_first_found/with_items'
* Use 'loop' syntax instead of 'with_first_found/with_items/with_dict'
* apt: store keys in /etc/apt/trusted.gpg.d in ascii format
* evolinux-base: copy GPG key instead of using apt-key
* ntpd: Add leapfile configuration setting to ntpd on debian 10+

View File

@ -15,14 +15,14 @@
include: user.yml
vars:
user: "{{ item.value }}"
with_dict: "{{ evolinux_users }}"
loop: "{{ evolinux_users | dict2items }}"
when: evolinux_users != {}
- name: Configure sudo
include: sudo.yml
vars:
user: "{{ item.value }}"
with_dict: "{{ evolinux_users }}"
loop: "{{ evolinux_users | dict2items }}"
when: evolinux_users != {}
- name: Configure SSH

View File

@ -48,7 +48,7 @@
- include: ssh_allowusers.yml
vars:
user: "{{ item.value }}"
with_dict: "{{ evolinux_users }}"
loop: "{{ evolinux_users | dict2items }}"
when:
- ssh_allowusers
- not ssh_allowgroups