Docker* connection plugins: add working_dir and privileged options (#943)

* Add working_dir option.

* Add privileged option.

* Add basic tests.

* Also test privileged.
This commit is contained in:
Felix Fontein
2024-07-25 22:35:32 +02:00
committed by GitHub
parent 7464002bc3
commit c3aceebd7d
7 changed files with 87 additions and 3 deletions
@@ -3,5 +3,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later
azp/4
skip/docker # coverage does not work if we're inside a docker container, since we cannot access this container's /tmp dir from the new container
skip/docker # coverage does not work if we're inside a docker container, since we cannot access this container's /tmp dir from the new container; also privileged doesn't work
destructive
@@ -54,6 +54,8 @@ cat > test_connection.inventory << EOF
[docker]
docker-no-pipelining ansible_pipelining=false
docker-pipelining ansible_pipelining=true
docker-working-dir ansible_docker_working_dir=/home
docker-privileged ansible_docker_privileged=true
[docker:vars]
ansible_host=docker-connection-test-container${CONTAINER_SUFFIX}