gantsign / ansible-role-oh-my-zsh

Ansible role for installing and configuring oh-my-zsh
https://galaxy.ansible.com/gantsign/oh-my-zsh
MIT License
163 stars 41 forks source link

chmod: invalid mode #175

Open stefanpl opened 4 months ago

stefanpl commented 4 months ago

Hi 👋

I'm trying to run this role against a Ubuntu 22.04.4 LTS instance:

  roles:
    - role: gantsign.oh-my-zsh
      become: true
      tags:
        - shell_setup
      users:
        - username: nwon
          oh_my_zsh:
            theme: maran
            plugins:
              - git

Getting this error:

TASK [gantsign.oh-my-zsh : write .zshrc for users] ****************************************************************************
fatal: [resolvio-testing-new]: FAILED! => {"msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user (rc: 1, err: chmod: invalid mode: ‘A+user:nwon:rx:allow’\nTry 'chmod --help' for more information.\n}). For information on working around this, see https://docs.ansible.com/ansible-core/2.16/playbook_guide/playbooks_privilege_escalation.html#risks-of-becoming-an-unprivileged-user"}

… where I think the interesting bit is:

chmod: invalid mode: ‘A+user:nwon:rx:allow’

FWIW, chmod --version yields chmod (GNU coreutils) 8.32. But the syntax looks pretty odd, so I don't think it's a version problem.

Do you have any idea what's going on here? Thanks a lot for any insights 🙏

Wolfeg commented 1 month ago

i've reported this at https://github.com/gantsign/ansible-role-oh-my-zsh/issues/159 install acl package on target machine before zsh role and all will work fine