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




- name: Test for existence /usr/bin/lastlog
  ansible.builtin.stat:
    path: "/usr/bin/lastlog"
  register: file_exists

- name: Ensure permission u-s,g-ws,o-xwrt on /usr/bin/lastlog
  ansible.builtin.file:
    path: "/usr/bin/lastlog"
    mode: "u-s,g-ws,o-xwrt"
  when: file_exists.stat is defined and file_exists.stat.exists


