From f50c4ea538a131af7ccfed8668b691a82cccac56 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 06:43:52 +0200 Subject: [PATCH] Improve docker_compose example (#470) (#473) * Improve compose docs. * Also adjust inline v1 example. (cherry picked from commit 3b41e7d6a836aa37558ffa420c8f5cb60f9ae959) Co-authored-by: Felix Fontein --- plugins/modules/docker_compose.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/modules/docker_compose.py b/plugins/modules/docker_compose.py index da889944..6e382a91 100644 --- a/plugins/modules/docker_compose.py +++ b/plugins/modules/docker_compose.py @@ -257,7 +257,8 @@ EXAMPLES = ''' - ansible.builtin.debug: var: output -- name: Run with inline v2 compose +- name: Run with inline Compose file version 2 + # https://docs.docker.com/compose/compose-file/compose-file-v2/ hosts: localhost gather_facts: no tasks: @@ -291,7 +292,8 @@ EXAMPLES = ''' - "web.flask_web_1.state.running" - "db.flask_db_1.state.running" -- name: Run with inline v1 compose +- name: Run with inline Compose file version 1 + # https://docs.docker.com/compose/compose-file/compose-file-v1/ hosts: localhost gather_facts: no tasks: