Skip to content
Snippets Groups Projects
Commit f26accad authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: loop syntax

parent 13bb671a
No related branches found
No related tags found
No related merge requests found
Pipeline #2599 passed
---
- name: $HOME-Verzeichnisse von Usern mit gleichen Gruppen schützen
block:
- name: $HOME-Verzeichnisse sammeln
ansible.builtin.find:
file_type: directory
paths: "/home/"
excludes: 'import'
register: ls_out
- name: striktere Berechtigungen für Homeverzeichnisse setzen
ansible.builtin.file:
path: "{{ item.path }}/"
mode: "0700"
loop:
# - "{{ ls_out.files | difference(['import','zih']) }}"
- "{{ ls_out.files }}"
when: item.path not in "import"
- name: assemble a list of all $HOME directories
ansible.builtin.find:
file_type: directory
paths: "/home/"
excludes: 'import'
register: ls_out
- name: set stricter permissions to protect $HOME directories from access by users with the same group
ansible.builtin.file:
path: "{{ item.path }}/"
mode: "0700"
loop: "{{ ls_out.files }}"
# loop: "{{ ls_out.files | difference(['import','zih']) }}"
when: not "import" in item.path
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment