Commit Graph

674 Commits

Author SHA1 Message Date
Felix Fontein 6f5d67860c docker_compose_v2: ignore some pull events (#803)
* Ignore some pull events.

* Adjust tests.
2024-02-23 18:24:16 +01:00
tigattack f0c91ef5f9 docs(docker_plugin): note that --grant-all-permissions is true by default (#800)
* docs(docker_plugin): note that `--grant-all-permissions` is true by default

Fixes #145

* Update plugins/modules/docker_plugin.py

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2024-02-16 13:48:53 +01:00
Felix Fontein 6366464812 docker_container: allow pull=never, and make check mode behavior configurable (#797)
* Allow to configure behavior of pull=true in check mode.

* Change pull to option that accepts some strings as well, such as pull=never.

* Adjust values.
2024-02-14 22:49:22 +01:00
Felix Fontein e494464e56 Add wait and wait_timeout options. (#796) 2024-02-14 22:48:36 +01:00
Felix Fontein b5de1fd1ad Add MarkDown changelog and use it by default. (#788) 2024-02-09 13:08:24 +01:00
tigattack 4c2e7ebfbc Fix typo in docker_image_build docs (#793) 2024-02-06 23:34:39 +01:00
Felix Fontein 7b554082ea Improve parsing. (#786) 2024-02-01 17:52:31 +00:00
Felix Fontein c97ac2337f Zuul third-party-check: disable ansible-doc part of galaxy-importer. (#781) 2024-01-27 14:49:28 +01:00
Felix Fontein 9f35743ab9 Next release will be 3.8.0. 2024-01-27 13:32:35 +01:00
Felix Fontein 810bf738d7 Release 3.7.0. 3.7.0 2024-01-27 13:03:00 +01:00
Felix Fontein b5d085bb88 Parse build events from stderr. (#779) 2024-01-25 06:40:32 +01:00
Felix Fontein b5391c7971 Add action group sanity test. (#777) 2024-01-24 08:25:17 +01:00
Felix Fontein cc32e0e6ad Prepare 3.7.0. 2024-01-24 07:27:56 +01:00
Felix Fontein 32cb76b164 Add scale option. (#776) 2024-01-24 07:16:33 +01:00
Felix Fontein eebb73a503 docker_compose_v2: add files option (#775)
* Add files option.

* Shorten lines.
2024-01-24 07:15:00 +01:00
Felix Fontein b2a79d9eb7 Add docker_image_export module (#774)
* Add docker_image_export module.

* Add basic tests.

* Add more seealsos.
2024-01-22 22:03:38 +01:00
Felix Fontein a53ecb6e66 Forgot to add docker_compose_v2_pull to action group. (#773) 2024-01-21 22:04:27 +01:00
Felix Fontein 901c1c4f9c Next expected release is 3.7.0. 2024-01-21 09:16:29 +01:00
Felix Fontein 564d3f389f Release 3.6.0. 3.6.0 2024-01-21 09:01:17 +01:00
Felix Fontein fcf608b334 Add networks[].mac_address option. (#763) 2024-01-20 14:23:12 +01:00
Felix Fontein 37d0a44c0b Adjust descriptions. (#766) 2024-01-20 14:13:11 +01:00
Felix Fontein ac41379119 Fix archive idempotency. (#765) 2024-01-20 14:12:55 +01:00
Felix Fontein 648e0652d5 mac_address no longer works with Docker API v1.44+. (#764) 2024-01-20 14:06:29 +01:00
Felix Fontein b2cee5677a Next expected release will be 3.6.0. 2024-01-18 08:20:29 +01:00
Felix Fontein 31540c43d6 Release 3.6.0-rc1. 3.6.0-rc1 2024-01-18 08:06:02 +01:00
Felix Fontein eb3e0b17cd Prepare 3.6.0-rc1 release. 2024-01-18 07:41:45 +01:00
Felix Fontein 7129cc5a30 Simplifiy workflows. (#762) 2024-01-17 23:13:35 +01:00
Felix Fontein c3322fd55b Fix typo. 2024-01-17 12:58:20 +01:00
Felix Fontein 6082efc855 Improve docs sharing for docker_compose_v2* modules; fix examples and return docs for docker_compose_v2_pull (#761)
* Move more common documentation to docs fragment.

* Fix examples and return values for docker_compose_v2_pull.

* Remove ignore.
2024-01-17 07:53:44 +01:00
Felix Fontein 22d956efa8 Allow to pass --build or --no-build to 'docker compose up'. (#760) 2024-01-17 06:57:35 +01:00
Simon Baerlocher 98a74b1f9c feat: add docker-compose services support. (#758)
* feat: add docker-compose services support.

fix: typo

* fix: error

* fix: ci Job

* feat: add argument_spec

* fix: whitespace

* feat: refactored docker_compose_v2 in response to feedback
2024-01-16 19:07:12 +01:00
Felix Fontein ab73061a5f Also check for compose.yaml and compose.yml, and do not require the Compose file to be an actual file. (#759) 2024-01-16 19:03:29 +01:00
Felix Fontein d4a5280512 Mention new module in docs. 2024-01-14 17:00:02 +01:00
Felix Fontein 4dd671248c Next expected release is 3.6.0. 2024-01-14 16:57:14 +01:00
Felix Fontein 5eb115cb10 Release 3.6.0-b2. 3.6.0-b2 2024-01-14 16:34:25 +01:00
Felix Fontein daf32ed6ec Remove part that's already in the regular changelog. 2024-01-14 08:55:32 +01:00
Felix Fontein 1c8272f821 Change Docker Stack modules to use common CLI module framework. (#745) 2024-01-14 08:54:06 +01:00
Felix Fontein 5adac5216a Add Galaxy import workflow (#754)
* Add Galaxy import workflow.

* A dependency of galaxy-importer does not work on Python 3.12.

* Make yamllint happy.
2024-01-13 19:25:22 +01:00
Felix Fontein b84c771fc5 Prepare 3.6.0-b2. 2024-01-13 16:21:27 +01:00
Felix Fontein f04cdb7e06 Remove sanity ignore files for Ansible 2.9 and ansible-base 2.10. (#753) 2024-01-13 16:05:59 +01:00
Felix Fontein f429017d94 Add inventory filter capability (#698)
* Add inventory filter capability.

* Use community.library_inventory_filtering_v1 collection.

* Bump dependency to 1.0.0.

* Mention the new dependency in the changelog.
2024-01-13 15:51:02 +01:00
Felix Fontein 97a0610f25 Docker Compose v2: extend/improve event parsing tests (#752)
* Normalize ansible-docker-test-xxx in stderr logs.

* Deduplicate.

* Add new testcases including the new module.
2024-01-13 15:49:30 +01:00
Felix Fontein 307dc4045a Add docker_compose_v2_pull module (#751)
* Add docker_compose_v2_pull module.

* Improve and extend parsing of events.

* Add ignores.

* --policy is only available since Compose 2.22.0.
2024-01-13 14:36:26 +01:00
Felix Fontein 8ca5e2f810 Extract more common code and docs fragment for Docker Compose. (#748) 2024-01-07 18:17:10 +01:00
Felix Fontein cb4dd2fed1 docker_compose_v2: move some code to module_utils (#747)
* Move some code to module_utils.

* Add unit tests.

Test cases are auto-generated from integration test logs.

* Rename ResourceEvent → Event.
2024-01-07 16:17:31 +01:00
Felix Fontein eed89f32eb docker_compose_v2: allow to specify pull policy; parse pull events; improve error handling; always return stderr (#746)
* Add pull option for 'docker compose up'.

* Improve dry-mode event parsing, and also parse pull-related events.

* Improve error handling, and add first tests.

* Fix action status documentation.

* Add more tests.

* Always return stderr.

This makes debugging misbehavior a lot easier since you can see
what 'docker compose' actually returned.

* Reformat existing tests.
2024-01-07 08:45:20 +01:00
Felix Fontein 4a5293503e Rename ca_cert option to ca_path (#744)
* Rename ca_cert option to ca_path.

* Two more.
2024-01-06 17:03:39 +01:00
Felix Fontein 5f9f78ede6 Update/improve documentation (#743)
* Mention new modules in guide.

* Improve formatting.

* Improve docs for SSL version option.

* Add docs and example for module defaults group.

* Remove not applicable comment.

* Improvements.

* Remove dead link for Ansible Operator.

* Ansible-bender seems to be no longer actively maintained, and its more aimed at podman.

* Add note and preamble for example.
2024-01-06 10:07:53 +01:00
Felix Fontein 22d595eddb Next expected release is 3.6.0. 2024-01-04 23:14:15 +01:00
Felix Fontein 7d680aa102 Release 3.6.0-b1. 3.6.0-b1 2024-01-04 22:44:56 +01:00