Ansible ACL Properties

Hi ,

The acl task with ansible failed for me, Please see below my code for this.
Please see the link for the task details: https://kodekloud-engineer.com/#!/task_review?task_id=5fb7b6e8783a7c241c87c39c as it is too long of a post.

  • name: This sets up an file-acl on stapp01
    hosts: stapp01
    become: true
    become_method: sudo
    tasks:
    • name: Create document root
      file:
      path: /opt/devops/blog.txt
      state: touch
    • name: Grant user Joe read access to a file
      acl:
      path: /opt/devops/blog.txt
      entity: tony
      etype: group
      permissions: r
  • name: This sets up an file-acl on stapp02
    hosts: stapp02
    become: true
    become_method: sudo
    tasks:
    • name: Create document root
      file:
      path: /opt/devops/story.txt
      state: touch
    • name: Grant user Joe read access to a file
      acl:
      path: /opt/devops/story.txt
      entity: steve
      etype: user
      permissions: rw
  • name: This sets up an file-acl on stapp03
    hosts: stapp03
    become: true
    become_method: sudo
    tasks:
    • name: Create document root
      file:
      path: /opt/devops/media.txt
      state: touch
    • name: Grant user Joe read access to a file
      acl:
      path: /opt/devops/media.txt
      entity: banner
      etype: group
      permissions: rw