1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-04-13 04:45:00 +00:00
Commit graph

37 commits

Author SHA1 Message Date
Sagi Shnaidman
8a61f88d66 Don't recreate container if env_file is specified
Fix #178
2021-02-11 04:34:25 +02:00
Sagi Shnaidman
e4f5a8eabe Convert systemd option to a string
And set it to lower to workaround bugs in 3.0.1
2021-02-10 20:14:03 +02:00
Sagi Shnaidman
c60f2c6cae Restart container in a simple manner
Don't require an image when restarting container, only the
container name.
2021-01-08 00:56:42 +02:00
Sagi Shnaidman
33c7fa5842 Add 'created' state for podman_container
Add state 'created' which will ensure container exists in current
configuration. It can either run or not.
2021-01-06 15:20:16 +02:00
Sagi Shnaidman
00d490b95c Convert gidmap to list for podman_container
Fix #152
2020-12-21 00:53:42 +02:00
Sagi Shnaidman
1d5d02cbbb Convert log-opts to dictionary and idempotent 2020-12-21 00:53:42 +02:00
Eric L
29a4bfa8e0 Add mac_address field to podman_container module
* extended description of podman_container
* add mac_address field and add_param function in podman_container_lib
* closes #146
2020-11-23 15:53:08 +02:00
Riyad Preukschas
9bc1233a73
Improve compatibility with docker_container by adding aliases (#142) 2020-11-07 19:54:27 +02:00
Sergey
bf752e4492
Move containers logic to module utils (#139) 2020-11-03 09:55:23 +02:00
Sergey
e1d35e70c6
Add strict image compare with hashes (#136) 2020-10-26 19:23:46 +02:00
Sergey
3dbca6fb91
Fix force restart option for containers (#131) 2020-10-24 18:04:42 +03:00
Sergey
1cf8872345
Add log level for Podman in module (#129) 2020-10-22 22:34:21 +03:00
Sergey
00a2bc9453
Prepare podman container to be called from other module (#128) 2020-10-22 00:43:53 +03:00
Sergey
2007d84132
Fix signals case for podman_container (#126)
In #113 we made a change to lowercase only keys, but signals in
image info are upper case.

Fix tests - stop signal should be word, not number.
Related to #125.
2020-10-20 16:54:33 +03:00
Sergey
5343cb43ed
Remove pyyaml from requirements (#121)
And remove all skips from ansible-test which were related to
imports and compiles.
2020-10-09 01:10:26 +03:00
Sergey
f7f279a9ce
Add note about containerPort setting (#120)
Fix #116
2020-10-08 21:18:45 +03:00
Holger Hees
1bd3b70de6
fix diff calculation for lower/upper cases (#115)
* fix diff calculation

* fix formatting

* fix formatting

* removed unused import statements

* add missing requirement doc
2020-10-07 11:50:43 +03:00
ruatag
9a7b4d7172
Fix init: option it's boolean not string (#111)
* Fix init: option it's boolean not string

* DOCUMENTATION.options.init.type bool
2020-09-28 21:25:37 +03:00
Sergey
2d3689e8c5
Fix issue with idempotency uts, ipc with pod (#95) 2020-07-29 13:25:32 +03:00
Sergey
727d4a361f
Fix idempotency for case with = in env (#92)
Add tests for env settings.
2020-07-27 20:00:04 +03:00
Sergey
0636d05cac
Fix idempotency for networks and add tests (#84) 2020-07-19 23:50:25 +03:00
Sergey
3726e2a1c7
Add ubuntu 20.04 to CI as it has podman 2.0.1 version (#83)
Fix idempotency issues in podman_container
Add creating workdir, buildah issue: https://github.com/containers/buildah/issues/2475
Fix #68
Fix #69
Should help to #80 as well, but will be handled separately.
2020-07-16 21:21:17 +03:00
Sergey
3ba6416ffc
Improve idempotency for volumes with slashes (#78)
In case of trailing slash or double slashes, the Podman strips it
automatically. Prepare input data accordingly, so we can compare
with Podman inspected one.
2020-07-09 18:37:08 +03:00
Sergey
6b2bcef9b2
Improve ports idempotency and support UDP (#76) 2020-07-09 17:23:28 +03:00
Abhijeet Kasurde
8d44ce919c
sanity: doc fixes (#71)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-07-05 12:11:04 +03:00
Sergey
d53539c2f4
Fix idempotency for podman > 2 versions (#66)
In podman 2.0.0 were introduced changes in inspection of container.
Support all idempotency changes from version 2.
2020-06-29 20:33:09 +03:00
Sergey
b2c36a8930
Add idempotency for ulimits and tests (#62) 2020-06-21 21:45:50 +03:00
Sergey
8b717f9201
Relicense under GPLv3 and clean up modules (#57)
Clean up modules according to last Ansible changes
Set license for GPLv3 to avoid various possible issues
2020-06-08 17:07:16 +03:00
Sergey
80b2ae6abf
Add idempotency for existing local volumes (#56) 2020-06-05 17:29:20 +03:00
Sergey
6fe402c494
Add inspect of image and user idempotency (#49) 2020-06-01 00:18:32 +03:00
Sergey
afb14658bc
Fix image, healthcheck and other idempotency (#43)
Fix healthcheck and --rm commands.
Fix idempotency for images.
Fix possible problem with volumesfrom not in the inspection.
2020-05-11 15:34:29 +03:00
Sergey
201151f93e
Add idempotency for user and stop signal (#41)
user and stop signal can be defined in images, ignore them if
they're not set
2020-05-11 14:27:39 +03:00
Sergey
376f8aa51a
Improve idempotency of podman_container (#40)
Consider pod container differences, they change utc, network, ipc according to their pods.
Add different default for cpu_shares on podman 1.8.* versions
Add test for containers idempotency in pods
Partially solves #21 and #31
2020-05-11 12:46:19 +03:00
Sergey
2e3dcfd7c5
Fix idempotency issues with workdir and volumes (#36)
"workdir" and "volumes" can be set in the image, so for better idempotency we'll need to inspect image. For now ignore these settings if they're not set.
2020-05-10 23:35:08 +03:00
Sagi Shnaidman
277a3129f0 Add CI for podman_container 2020-05-10 20:34:22 +03:00
Sagi Shnaidman
750ed503df Github workflow 2020-03-30 21:43:23 +03:00
Sagi Shnaidman
883a3b958e Add podman_container module from TripleO
fix #7
2020-03-15 21:08:06 +02:00