---

- name: "Execute ansible-commit"
  ansible.builtin.command:
    cmd: "/usr/local/bin/ansible-commit --verbose --message \"{{ commit_message | mandatory }}\""
  changed_when:
    - _ansible_commit.stdout
    - "'CHANGED:' in _ansible_commit.stdout"
  ignore_errors: True
  register: _ansible_commit