From 52f8945f4610c338becdd973e9efccdf34f20141 Mon Sep 17 00:00:00 2001 From: felixfontein Date: Mon, 15 May 2023 20:01:36 +0000 Subject: [PATCH] deploy: 7bdb2127e083ce0a84bf44097b99e7a32b66317b --- branch/main/docker_api_connection.html | 1 + branch/main/docker_compose_module.html | 48 ++++++++++++------- branch/main/docker_container_exec_module.html | 5 +- branch/main/docker_containers_inventory.html | 1 + branch/main/docker_host_info_module.html | 3 +- branch/main/docker_swarm_info_module.html | 8 ++-- branch/main/searchindex.js | 2 +- 7 files changed, 44 insertions(+), 24 deletions(-) diff --git a/branch/main/docker_api_connection.html b/branch/main/docker_api_connection.html index 0c2d5e81..a533187c 100644 --- a/branch/main/docker_api_connection.html +++ b/branch/main/docker_api_connection.html @@ -448,6 +448,7 @@ see

Note

diff --git a/branch/main/docker_compose_module.html b/branch/main/docker_compose_module.html index 1bc2168f..5b2ffa6b 100644 --- a/branch/main/docker_compose_module.html +++ b/branch/main/docker_compose_module.html @@ -641,7 +641,8 @@ see project_src: flask register: output - - ansible.builtin.debug: + - name: Show results + ansible.builtin.debug: var: output - name: Run `docker-compose up` again @@ -650,7 +651,8 @@ see build: false register: output - - ansible.builtin.debug: + - name: Show results + ansible.builtin.debug: var: output - ansible.builtin.assert: @@ -663,10 +665,12 @@ see stopped: true register: output - - ansible.builtin.debug: + - name: Show results + ansible.builtin.debug: var: output - - ansible.builtin.assert: + - name: Verify that web and db services are running + ansible.builtin.assert: that: - "not output.services.web.flask_web_1.state.running" - "not output.services.db.flask_db_1.state.running" @@ -678,10 +682,12 @@ see restarted: true register: output - - ansible.builtin.debug: + - name: Show results + ansible.builtin.debug: var: output - - ansible.builtin.assert: + - name: Verify that web and db services are running + ansible.builtin.assert: that: - "output.services.web.flask_web_1.state.running" - "output.services.db.flask_db_1.state.running" @@ -690,13 +696,15 @@ see hosts: localhost gather_facts: false tasks: - - community.docker.docker_compose: + - name: Scale the web service to two instances + community.docker.docker_compose: project_src: flask scale: web: 2 register: output - - ansible.builtin.debug: + - name: Show results + ansible.builtin.debug: var: output - name: Run with inline Compose file version 2 @@ -704,11 +712,13 @@ see hosts: localhost gather_facts: false tasks: - - community.docker.docker_compose: + - name: Remove flask project + community.docker.docker_compose: project_src: flask state: absent - - community.docker.docker_compose: + - name: Start flask project with inline definition + community.docker.docker_compose: project_name: flask definition: version: '2' @@ -726,10 +736,12 @@ see - db register: output - - ansible.builtin.debug: + - name: Show results + ansible.builtin.debug: var: output - - ansible.builtin.assert: + - name: Verify that the db and web services are running + ansible.builtin.assert: that: - "output.services.web.flask_web_1.state.running" - "output.services.db.flask_db_1.state.running" @@ -739,11 +751,13 @@ see hosts: localhost gather_facts: false tasks: - - community.docker.docker_compose: + - name: Remove flask project + community.docker.docker_compose: project_src: flask state: absent - - community.docker.docker_compose: + - name: Start flask project with inline definition + community.docker.docker_compose: project_name: flask definition: db: @@ -759,10 +773,12 @@ see - db register: output - - ansible.builtin.debug: + - name: Show results + ansible.builtin.debug: var: output - - ansible.builtin.assert: + - name: Verify that web and db services are running + ansible.builtin.assert: that: - "output.services.web.flask_web_1.state.running" - "output.services.db.flask_db_1.state.running" diff --git a/branch/main/docker_container_exec_module.html b/branch/main/docker_container_exec_module.html index 3da1af6c..79cbdc7d 100644 --- a/branch/main/docker_container_exec_module.html +++ b/branch/main/docker_container_exec_module.html @@ -493,6 +493,7 @@ see Note

@@ -508,7 +509,7 @@ see register: result - name: Print stdout - debug: + ansible.builtin.debug: var: result.stdout - name: Run a simple command (argv) @@ -522,7 +523,7 @@ see register: result - name: Print stderr lines - debug: + ansible.builtin.debug: var: result.stderr_lines diff --git a/branch/main/docker_containers_inventory.html b/branch/main/docker_containers_inventory.html index dbfcfd41..7388ba0c 100644 --- a/branch/main/docker_containers_inventory.html +++ b/branch/main/docker_containers_inventory.html @@ -299,6 +299,7 @@ see ssh). For this, the options default_ip and private_ssh_port are used. This requires that a SSH daemon is running inside the containers.

Alternatively, docker-cli selects the docker connection plugin, and docker-api (default) selects the docker_api connection plugin.

When docker-api is used, all Docker daemon configuration values are passed from the inventory plugin to the connection plugin. This can be controlled with configure_docker_daemon.

+

Note that the docker_api connection plugin does not work with TCP TLS sockets! See https://github.com/ansible-collections/community.docker/issues/605 for more information.

Choices: