Commit Graph

180 Commits

Author SHA1 Message Date
Felix Fontein
93b351f607 Release 2.7.7. 2023-11-12 12:04:32 +01:00
patchback[bot]
35de5b3c37
fix(community.docker.docker_volume): labels can be none (#702) (#704)
* fix(community.docker.docker_volume): labels can be none

catch case where volume labels can are done (default) eg:

$ docker volume inspect foo
[
    {
        "CreatedAt": "2023-11-11T12:55:23+01:00",
        "Driver": "local",
        "Labels": null,
        "Mountpoint": "/var/lib/docker/volumes/foo/_data",
        "Name": "foo",
        "Options": {},
        "Scope": "local"
    }
]

* Update plugins/modules/docker_volume.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* add(community.docker.docker_volume): changelog fragment

* Update changelogs/fragments/702-docker-volume-label-none.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 4c220c4d74)

Co-authored-by: Alexander Jähnel <alexanderjaehnel@gmail.com>
2023-11-12 12:03:29 +01:00
Felix Fontein
5f413ac778
Do not pass data_path_addr for older Docker SDK for Python versions. (#696) (#697)
(cherry picked from commit fbc2750b6a)
2023-10-14 22:10:49 +00:00
Felix Fontein
2433c9e427 Next expected release is 2.7.7. 2023-06-15 13:24:04 +02:00
Felix Fontein
8d9bf780e2 Release 2.7.6. 2023-06-15 13:13:49 +02:00
patchback[bot]
c31fb79755
Fix EndpointSpec KeyError. (#637) (#638)
(cherry picked from commit 748d619fb2)

Co-authored-by: Felix Fontein <felix@fontein.de>
2023-05-26 21:20:18 +02:00
Felix Fontein
da7ef0e8cc Next expected release is 2.7.6. 2023-02-25 15:56:04 +01:00
Felix Fontein
08810a66a9 Relesae 2.7.5. 2023-02-25 15:36:56 +01:00
Felix Fontein
a5d00c6f98 Prepare 2.7.5 release. 2023-02-24 21:35:50 +01:00
Felix Fontein
94227e2575
docker_prune: correctly return 'changed' result (#593) (#594)
* Correctly return 'changed' status.

* Extend tests.

* Fix typo.

(cherry picked from commit 08bfcf7e5f)
2023-02-24 21:24:39 +01:00
Felix Fontein
808063ddcd
[stable-2] Remove unneccessary imports (#579)
* Remove unneccessary imports (#575)

* Remove unneccessary imports.

* Add noqas.

(cherry picked from commit 54a3dc151d)

* Remove additional unnecessary import.
2023-02-09 16:09:00 +01:00
Felix Fontein
8cb5b6d1bb Release 2.7.4. 2023-01-14 11:18:28 +01:00
Felix Fontein
40bef226c0
Improve envvar fallback handling. (#554) (#555)
(cherry picked from commit 4e6ac335f3)
2023-01-13 21:04:00 +01:00
Felix Fontein
0ffa3cc1d2
docker_plugin: do not crash when plugin doesn't exist (#553) (#556)
* Do not crash when plugin doesn't exist.

* Improve style.

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
(cherry picked from commit c7cbec0163)
2023-01-13 21:00:34 +01:00
Felix Fontein
f5c19b1a87 Prepare 2.7.4 release. 2023-01-13 06:44:59 +01:00
patchback[bot]
4928828d22
Fix error handling. (#546) (#548)
(cherry picked from commit 18091193de)

Co-authored-by: Felix Fontein <felix@fontein.de>
2023-01-05 21:15:21 +01:00
Felix Fontein
f776b689d8 Release 2.7.3. 2022-12-06 13:21:04 +01:00
Felix Fontein
8811d9be10
Improve container detection. (#522) (#523)
(cherry picked from commit e87b327764)
2022-12-06 08:39:15 +01:00
Felix Fontein
32838bfc85 Prepare 2.7.3 release. 2022-12-06 08:15:18 +01:00
Felix Fontein
cb58b91d8d Release 2.7.2. 2022-12-03 21:14:41 +01:00
Felix Fontein
f718cfccd7 Prepare 2.7.2 release. 2022-12-01 00:03:22 +01:00
Felix Fontein
3da9aa3b9c
[stable-2] Make current_container_facts work with newer Docker versions and latest ansible-test container changes (#512)
* Make current_container_facts work with newer Docker versions and latest ansible-test container changes (#510)

* Add more debug output.

* Add basic integration test.

* Split into lines.

* Fix docker detection, add podman detection.

ci_complete

* Improve regular expression.

* Document that this module is trying its best, but might not be perfect.

* Update comment.

(cherry picked from commit c2d84efccb)

* Remove new feature (podman support).
2022-11-30 23:01:30 +01:00
Felix Fontein
3119af72cf Release 2.7.1. 2022-08-12 22:02:53 +02:00
patchback[bot]
154e1902de
Fix error formatting bug. (#448) (#450)
(cherry picked from commit f513ba2c59)

Co-authored-by: Felix Fontein <felix@fontein.de>
2022-08-12 14:15:40 +02:00
Felix Fontein
4fb4580855 Prepare 2.7.1 release. 2022-08-10 21:47:33 +02:00
Felix Fontein
86011cdfdf Release 2.7.0. 2022-07-02 14:22:03 +02:00
Felix Fontein
45f3657fb6 Prepare 2.7.0. 2022-07-02 14:21:47 +02:00
Felix Fontein
e6d597b539 Revert "Remove deprecated functionality. (#363)"
This reverts commit 209aeb57fd.
2022-07-02 14:18:53 +02:00
Felix Fontein
57e19ca596 Revert "Remove deprecations from docker_container, bump collection version to 3.0.0 (#399)"
This reverts commit 49ce0a3cb1.
2022-07-02 14:18:48 +02:00
Felix Fontein
7b46e4d414
Deprecate all API versions until 1.24 (#397)
* Deprecate all API versions until 1.24.

* Fix newlines.
2022-07-02 14:18:14 +02:00
Felix Fontein
49ce0a3cb1
Remove deprecations from docker_container, bump collection version to 3.0.0 (#399)
* Remove deprecated features in docker_container.

* Bump collection version to 3.0.0.

* Remove 'published_ports: all' tests.
2022-07-01 19:16:22 +02:00
Felix Fontein
209aeb57fd
Remove deprecated functionality. (#363) 2022-07-01 19:02:22 +02:00
Felix Fontein
00ddbbdeb2
Deprecate Python 2.6 (#388)
* Deprecate Python 2.6 support.

* Document deprecations in README.
2022-06-30 20:47:46 +02:00
Felix Fontein
f41d7ac1b8
Move common utility code to plugins.module_utils.util (#390)
* Move common utility code to plugins.module_utils.util.

* Also adjust plugins.

* Fix import.
2022-06-20 18:39:13 +02:00
Felix Fontein
a44e0736cf
Improve API version handling. (#389) 2022-06-20 07:34:38 +02:00
Felix Fontein
01ca3f0e1c Release 2.6.0. 2022-05-24 12:50:19 +02:00
Rodrigo Candido Gryzinski
497c2fda91
Add image_label_mismatch parameter to docker_container (#370)
* Add image_label_mismatch to docker_container

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* Test image_label_mismatch error message

* Add change fragment for image_label_mismatch

* Break long line in docker_container.py for pep-8 compliance

* pep8 compliance

* Update changelogs/fragments/370-add-image-label-mismatch.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* fix: add expected_labels to parameters_map in docker_container

* Apply suggestions from code review

* Apply suggestions from code review

* Update tests/integration/targets/docker_container/tasks/tests/options.yml

Co-authored-by: Felix Fontein <felix@fontein.de>
2022-05-24 08:35:33 +02:00
Felix Fontein
9580c25579
Deprecate docker-compose EE dependency. (#373) 2022-05-24 08:11:31 +02:00
Felix Fontein
184dd63e55 Prepare 2.6.0 release. 2022-05-24 07:48:07 +02:00
Felix Fontein
401a76ff00
docker_container: fail if there are too many parts in a parsed port (#367)
* Fail if there are too many parts in a parsed port.

* Add tests.

* Prevent bad parsing.
2022-05-22 17:20:05 +02:00
Felix Fontein
1425faadd0
Deprecate Ansible 2.9 and ansible-base 2.10 support. (#361) 2022-05-20 14:46:07 +02:00
Felix Fontein
7e710f743d
Bump deprecations we forgot to remove in 2.0.0. (#362) 2022-05-20 14:45:52 +02:00
Felix Fontein
fb55b1d780
Avoid breakage with Python 3.13. (#354) 2022-05-18 22:22:50 +02:00
Felix Fontein
929a2f6e5f Release 2.5.1. 2022-05-16 12:27:39 +02:00
Felix Fontein
6adc7bddf3
Add PSF-license.txt file. (#350) 2022-05-16 07:35:23 +02:00
Felix Fontein
71fb48b7c5 Prepare 2.5.1 release. 2022-05-16 07:11:56 +02:00
Felix Fontein
1848142d4f Release 2.5.0. 2022-05-14 12:11:04 +02:00
Felix Fontein
e5ba309f03 Prepare 2.5.0 release. 2022-05-11 07:28:08 +02:00
Sasha Jenner
c63ef4116d
Support --template-driver for docker_config (#332) (#345)
* initial templating changes

* adding docs

* author

* responding to pr comments

* testing for idempotency

* using template_driver rather than templating

* adding explicit idem check

* remove local testing changes

* bug fix

* fixing idempotency

Co-authored-by: Sasha Jenner <sasha.jenner@cba.com.au>
2022-05-11 07:26:59 +02:00
chrische
98b227003e
docker_swarm: adds data_path_addr option for swarm init and swarm join (#344)
* adds data_path_addr option for swarm init and swarm join. (ansible-collections/community.docker#339)

* adds changelog fragment (ansible-collections/community.docker#339)

* adds formatting to changelog entry

Co-authored-by: Felix Fontein <felix@fontein.de>

* adds version to doc entry in ansible_swarm

Co-authored-by: Felix Fontein <felix@fontein.de>

* rewrites doc entry to formal language

Co-authored-by: Felix Fontein <felix@fontein.de>

* Correct docker api version (src: docker api docs)

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2022-05-09 20:37:27 +02:00