Skip to content

Commit 0075d92

Browse files
committed
Add sudoers file in ansible-test container
Ansible-test container was missing the sudoers file in it, added a copy statment in the ansibleTest.yaml to add it to the image.
1 parent a013801 commit 0075d92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

container-images/tcib/base/ansible-tests/ansibleTests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ tcib_envs:
33
tcib_actions:
44
- run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }}
55
- run: dnf -y install {{ tcib_packages.common | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf
6-
- run: pip3 install ansible==2.9.27 openstacksdk
6+
- run: pip3 install ansible openstacksdk
7+
- run: cp /usr/share/tcib/container-images/tcib/base/ansible-tests/ansible_sudoers /etc/sudoers.d/ansible_sudoers
8+
- run: chmod 440 /etc/sudoers.d/ansible_sudoers
79
- run: cp /usr/share/tcib/container-images/tcib/base/ansible-tests/run_ansible.sh /usr/local/bin/run_ansible.sh
810
- run: chmod +x /usr/local/bin/run_ansible.sh
911
- run: chown -R ansible:ansible /var/lib/ansible

0 commit comments

Comments
 (0)