Use 'loop' syntax instead of 'with_dict'
This commit is contained in:
parent
5138065059
commit
07fd6451e1
|
@ -19,7 +19,7 @@ The **patch** part changes incrementally at each release.
|
||||||
|
|
||||||
### Changed
|
### 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
|
* apt: store keys in /etc/apt/trusted.gpg.d in ascii format
|
||||||
* evolinux-base: copy GPG key instead of using apt-key
|
* evolinux-base: copy GPG key instead of using apt-key
|
||||||
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
|
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
|
||||||
|
|
|
@ -15,14 +15,14 @@
|
||||||
include: user.yml
|
include: user.yml
|
||||||
vars:
|
vars:
|
||||||
user: "{{ item.value }}"
|
user: "{{ item.value }}"
|
||||||
with_dict: "{{ evolinux_users }}"
|
loop: "{{ evolinux_users | dict2items }}"
|
||||||
when: evolinux_users != {}
|
when: evolinux_users != {}
|
||||||
|
|
||||||
- name: Configure sudo
|
- name: Configure sudo
|
||||||
include: sudo.yml
|
include: sudo.yml
|
||||||
vars:
|
vars:
|
||||||
user: "{{ item.value }}"
|
user: "{{ item.value }}"
|
||||||
with_dict: "{{ evolinux_users }}"
|
loop: "{{ evolinux_users | dict2items }}"
|
||||||
when: evolinux_users != {}
|
when: evolinux_users != {}
|
||||||
|
|
||||||
- name: Configure SSH
|
- name: Configure SSH
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
- include: ssh_allowusers.yml
|
- include: ssh_allowusers.yml
|
||||||
vars:
|
vars:
|
||||||
user: "{{ item.value }}"
|
user: "{{ item.value }}"
|
||||||
with_dict: "{{ evolinux_users }}"
|
loop: "{{ evolinux_users | dict2items }}"
|
||||||
when:
|
when:
|
||||||
- ssh_allowusers
|
- ssh_allowusers
|
||||||
- not ssh_allowgroups
|
- not ssh_allowgroups
|
||||||
|
|
Loading…
Reference in a new issue