docs: Fix json path in asserts (#560)

##### SUMMARY

The current path to the running state does not include `output.services.` which it should.

##### ISSUE TYPE

- Docs Pull Request

+label: docsite_pr
This commit is contained in:
David Jack Wange Olrik 2023-01-20 13:19:33 +01:00 committed by GitHub
parent dc611a05d1
commit c24ea78f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,8 +235,8 @@ EXAMPLES = '''
- ansible.builtin.assert:
that:
- "not web.flask_web_1.state.running"
- "not db.flask_db_1.state.running"
- "not output.services.web.flask_web_1.state.running"
- "not output.services.db.flask_db_1.state.running"
- name: Restart services
community.docker.docker_compose:
@ -250,8 +250,8 @@ EXAMPLES = '''
- ansible.builtin.assert:
that:
- "web.flask_web_1.state.running"
- "db.flask_db_1.state.running"
- "output.services.web.flask_web_1.state.running"
- "output.services.db.flask_db_1.state.running"
- name: Scale the web service to 2
hosts: localhost
@ -298,8 +298,8 @@ EXAMPLES = '''
- ansible.builtin.assert:
that:
- "web.flask_web_1.state.running"
- "db.flask_db_1.state.running"
- "output.services.web.flask_web_1.state.running"
- "output.services.db.flask_db_1.state.running"
- name: Run with inline Compose file version 1
# https://docs.docker.com/compose/compose-file/compose-file-v1/
@ -331,8 +331,8 @@ EXAMPLES = '''
- ansible.builtin.assert:
that:
- "web.flask_web_1.state.running"
- "db.flask_db_1.state.running"
- "output.services.web.flask_web_1.state.running"
- "output.services.db.flask_db_1.state.running"
'''
RETURN = '''