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: ansible.builtin.find:
- name: $HOME-Verzeichnisse sammeln file_type: directory
ansible.builtin.find: paths: "/home/"
file_type: directory excludes: 'import'
paths: "/home/" register: ls_out
excludes: 'import'
register: ls_out - name: set stricter permissions to protect $HOME directories from access by users with the same group
- name: striktere Berechtigungen für Homeverzeichnisse setzen ansible.builtin.file:
ansible.builtin.file: path: "{{ item.path }}/"
path: "{{ item.path }}/" mode: "0700"
mode: "0700" loop: "{{ ls_out.files }}"
loop: # loop: "{{ ls_out.files | difference(['import','zih']) }}"
# - "{{ ls_out.files | difference(['import','zih']) }}" when: not "import" in item.path
- "{{ ls_out.files }}"
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