Debian Codegraph @

test/integration/targets/become_unprivileged/chmod_acl_macos/test.yml

raw
1 - name: Tests for chmod +a ACL functionality on macOS
2 hosts: ssh
3 gather_facts: yes
4 remote_user: unpriv1
5 become: yes
6 become_user: unpriv2
7
8 tasks:
9 - name: Get AnsiballZ temp directory
10 action: tmpdir
11 register: tmpdir
12 become_user: unpriv2
13 become: yes
14
15 - name: run whoami
16 command: whoami
17 register: whoami
18
19 - name: Ensure we used the right fallback
20 shell: ls -le /var/tmp/ansible*/*_command.py
21 register: ls
22
23 - assert:
24 that:
25 - whoami.stdout == "unpriv2"
26 - "'user:unpriv2 allow read' in ls.stdout"