Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker_stack: Cleanup EXAMPLES #58972

Merged
merged 1 commit into from Jul 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 20 additions & 20 deletions lib/ansible/modules/cloud/docker/docker_stack.py
Expand Up @@ -96,30 +96,30 @@
'''

EXAMPLES = '''
- name: deploy 'stack1' stack from file
- name: Deploy stack from a compose file
docker_stack:
state: present
name: stack1
compose:
- /opt/stack.compose
state: present
name: mystack
compose:
- /opt/docker-compose.yml

- name: deploy 'stack2' from base file and yaml overrides
- name: Deploy stack from base compose file and override the web service
docker_stack:
state: present
name: stack2
compose:
- /opt/stack.compose
- version: '3'
services:
web:
image: nginx:latest
environment:
ENVVAR: envvar

- name: deprovision 'stack1'
state: present
name: mystack
compose:
- /opt/docker-compose.yml
- version: '3'
services:
web:
image: nginx:latest
environment:
ENVVAR: envvar

- name: Remove stack
docker_stack:
name: stack1
state: absent
name: mystack
state: absent
'''


Expand Down