mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
5b898a7732
* add connection plugin for buildah Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> * fixup * create a method to invoke buildah * mount container filesystem persistently so we can access it during put and fetch * use copyfile function for copying files Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> * revert tests Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> * fixup Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> * progress (this will be squashed into a single commit before merge) * add docs for the conn plugin * fix issue invoking the integration tests * add a way to invoke commands inside the container as a different user Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> * fix shellcheck warning Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
12 lines
396 B
Text
12 lines
396 B
Text
[buildah]
|
|
buildah-container ansible_ssh_pipelining=true
|
|
[buildah:vars]
|
|
# 1. install buildah
|
|
# 2. create container:
|
|
# $ sudo buildah from --name=buildah-container python:2
|
|
# 3. run test:
|
|
# $ ANSIBLE_TEST_REMOTE_INTERPRETER= ansible-test integration --local connection_buildah
|
|
# 6. remove container
|
|
# $ sudo buildah rm buildah-container
|
|
ansible_host=buildah-container
|
|
ansible_connection=buildah
|