mirror of https://github.com/ansible/ansible.git
Ensure that we do not squash keywords in validate (#79049)
* Ensure that we do not squash keywords in validate. Fixes #79021 * become_user: nobody should only apply to the test tasks, not the setup_test_user role * Update how become_user is specified * Add test to ensure keyword inheritance is working for become * Add clog frag * Cache fattributes to prevent re-calculation * ci_complete * Remove unnecessary getattrpull/79071/head
parent
11c1777d56
commit
420564c5bc
@ -0,0 +1,3 @@
|
||||
bugfixes:
|
||||
- keyword inheritance - Ensure that we do not squash keywords in validate
|
||||
(https://github.com/ansible/ansible/issues/79021)
|
@ -0,0 +1,3 @@
|
||||
shippable/posix/group4
|
||||
context/controller
|
||||
needs/target/setup_test_user
|
@ -0,0 +1,3 @@
|
||||
- command: whoami
|
||||
register: result
|
||||
failed_when: result.stdout_lines|first != 'ansibletest0'
|
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
ANSIBLE_ROLES_PATH=../ ansible-playbook -i ../../inventory test.yml "$@"
|
@ -0,0 +1,8 @@
|
||||
- hosts: testhost
|
||||
gather_facts: false
|
||||
become_user: ansibletest0
|
||||
become: yes
|
||||
roles:
|
||||
- role: setup_test_user
|
||||
become_user: root
|
||||
- role: whoami
|
Loading…
Reference in New Issue