mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 12:28:55 +00:00
* Improve compose docs.
* Also adjust inline v1 example.
(cherry picked from commit 3b41e7d6a8)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
f901eeb57e
commit
29050ffbb8
@ -259,7 +259,8 @@ EXAMPLES = '''
|
|||||||
- ansible.builtin.debug:
|
- ansible.builtin.debug:
|
||||||
var: output
|
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
|
hosts: localhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
@ -293,7 +294,8 @@ EXAMPLES = '''
|
|||||||
- "web.flask_web_1.state.running"
|
- "web.flask_web_1.state.running"
|
||||||
- "db.flask_db_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
|
hosts: localhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user