# platform = multi_platform_all
# reboot = false
# strategy = configure
# complexity = low
# disruption = low









- name: Find /lib/ file(s) recursively
  ansible.builtin.command: 'find -P /lib/  -perm /g+w,o+w  -type d '
  register: files_found
  changed_when: False
  failed_when: False
  check_mode: no

- name: Set permissions for /lib/ file(s)
  ansible.builtin.file:
    path: "{{ item }}"
    mode: "g-w,o-w"
    state: "directory"
  with_items:
    - "{{ files_found.stdout_lines }}"










- name: Find /lib64/ file(s) recursively
  ansible.builtin.command: 'find -P /lib64/  -perm /g+w,o+w  -type d '
  register: files_found
  changed_when: False
  failed_when: False
  check_mode: no

- name: Set permissions for /lib64/ file(s)
  ansible.builtin.file:
    path: "{{ item }}"
    mode: "g-w,o-w"
    state: "directory"
  with_items:
    - "{{ files_found.stdout_lines }}"










- name: Find /usr/lib/ file(s) recursively
  ansible.builtin.command: 'find -P /usr/lib/  -perm /g+w,o+w  -type d '
  register: files_found
  changed_when: False
  failed_when: False
  check_mode: no

- name: Set permissions for /usr/lib/ file(s)
  ansible.builtin.file:
    path: "{{ item }}"
    mode: "g-w,o-w"
    state: "directory"
  with_items:
    - "{{ files_found.stdout_lines }}"










- name: Find /usr/lib64/ file(s) recursively
  ansible.builtin.command: 'find -P /usr/lib64/  -perm /g+w,o+w  -type d '
  register: files_found
  changed_when: False
  failed_when: False
  check_mode: no

- name: Set permissions for /usr/lib64/ file(s)
  ansible.builtin.file:
    path: "{{ item }}"
    mode: "g-w,o-w"
    state: "directory"
  with_items:
    - "{{ files_found.stdout_lines }}"


