Skip to content

Commit

Permalink
Cleanup EXAMPLES (#58972) (#59012)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4ab364e)
  • Loading branch information
hannseman authored and acozine committed Jul 12, 2019
1 parent 840d869 commit fb5a6e1
Showing 1 changed file with 20 additions and 20 deletions.
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

0 comments on commit fb5a6e1

Please sign in to comment.