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









- name: Find /etc/cron.hourly/ file(s)
  ansible.builtin.command: 'find -P /etc/cron.hourly/ -maxdepth 0 -perm /u+s,g+xwrs,o+xwrt  -type d '
  register: files_found
  changed_when: False
  failed_when: False
  check_mode: no

- name: Set permissions for /etc/cron.hourly/ file(s)
  ansible.builtin.file:
    path: "{{ item }}"
    mode: "u-s,g-xwrs,o-xwrt"
    state: "directory"
  with_items:
    - "{{ files_found.stdout_lines }}"


