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 - name: assemble a list of all $HOME directories
block:
- name: $HOME-Verzeichnisse sammeln
ansible.builtin.find: ansible.builtin.find:
file_type: directory file_type: directory
paths: "/home/" paths: "/home/"
excludes: 'import' excludes: 'import'
register: ls_out register: ls_out
- name: striktere Berechtigungen für Homeverzeichnisse setzen
- name: set stricter permissions to protect $HOME directories from access by users with the same group
ansible.builtin.file: ansible.builtin.file:
path: "{{ item.path }}/" path: "{{ item.path }}/"
mode: "0700" mode: "0700"
loop: loop: "{{ ls_out.files }}"
# - "{{ ls_out.files | difference(['import','zih']) }}" # loop: "{{ ls_out.files | difference(['import','zih']) }}"
- "{{ ls_out.files }}" when: not "import" in item.path
when: item.path not in "import"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment