e3c7e35656
* Add extra args and executable name to podman connection plugin Like there is for docker plugin, add extra arguments for command line of podman. Also add configurable executable and checking if this executable exists on host. Fail module if executable is not in PATH. * Update changelogs/fragments/63166-add-extra-args-executalbe-podman-connection.yaml Co-Authored-By: Felix Fontein <felix@fontein.de>
14 lines
452 B
Bash
Executable file
14 lines
452 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
./posix.sh "$@"
|
|
|
|
ANSIBLE_REMOTE_TMP="/tmp" ANSIBLE_REMOTE_USER="1000" ./posix.sh "$@"
|
|
ANSIBLE_PODMAN_EXECUTABLE=fakepodman ./posix.sh "$@" 2>&1 | grep "fakepodman command not found in PATH"
|
|
|
|
ANSIBLE_PODMAN_EXECUTABLE=fakepodman ./posix.sh "$@" && {
|
|
echo "Playbook with fakepodman should fail!"
|
|
exit 1
|
|
}
|
|
ANSIBLE_VERBOSITY=4 ANSIBLE_PODMAN_EXTRA_ARGS=" --log-level debug " ./posix.sh "$@" | grep "level=debug msg="
|