diff --git a/branch/main/current_container_facts_module.html b/branch/main/current_container_facts_module.html index c873a131..7fbe7033 100644 --- a/branch/main/current_container_facts_module.html +++ b/branch/main/current_container_facts_module.html @@ -251,7 +251,7 @@ To check whether it is installed, run - name: Print information on current container when running in a container ansible.builtin.debug: - msg: "Container ID is {{ ansible_module_container_id }}" + msg: "Container ID is {{ ansible_module_container_id }}" when: ansible_module_running_in_container diff --git a/branch/main/docker_compose_v2_exec_module.html b/branch/main/docker_compose_v2_exec_module.html index 07d0b543..ed2c9132 100644 --- a/branch/main/docker_compose_v2_exec_module.html +++ b/branch/main/docker_compose_v2_exec_module.html @@ -603,7 +603,7 @@ will change over time. New releases of the Docker compose CLI plugin can break t - name: Run a simple command (command) community.docker.docker_compose_v2_exec: service: foo - command: /bin/bash -c "ls -lah" + command: /bin/bash -c "ls -lah" chdir: /root register: result @@ -616,8 +616,8 @@ will change over time. New releases of the Docker compose CLI plugin can break t service: foo argv: - /bin/bash - - "-c" - - "ls -lah > /dev/stderr" + - "-c" + - "ls -lah > /dev/stderr" chdir: /root register: result diff --git a/branch/main/docker_compose_v2_module.html b/branch/main/docker_compose_v2_module.html index 8515d415..7fec2224 100644 --- a/branch/main/docker_compose_v2_module.html +++ b/branch/main/docker_compose_v2_module.html @@ -726,13 +726,13 @@ will change over time. New releases of the Docker compose CLI plugin can break t - name: Verify that web and db services are not running ansible.builtin.assert: that: - - web_container.State != 'running' - - db_container.State != 'running' + - web_container.State != 'running' + - db_container.State != 'running' vars: web_container: >- - {{ output.containers | selectattr("Service", "equalto", "web") | first }} + {{ output.containers | selectattr("Service", "equalto", "web") | first }} db_container: >- - {{ output.containers | selectattr("Service", "equalto", "db") | first }} + {{ output.containers | selectattr("Service", "equalto", "db") | first }} - name: Restart services community.docker.docker_compose_v2: @@ -747,13 +747,13 @@ will change over time. New releases of the Docker compose CLI plugin can break t - name: Verify that web and db services are running ansible.builtin.assert: that: - - web_container.State == 'running' - - db_container.State == 'running' + - web_container.State == 'running' + - db_container.State == 'running' vars: web_container: >- - {{ output.containers | selectattr("Service", "equalto", "web") | first }} + {{ output.containers | selectattr("Service", "equalto", "web") | first }} db_container: >- - {{ output.containers | selectattr("Service", "equalto", "db") | first }} + {{ output.containers | selectattr("Service", "equalto", "db") | first }} diff --git a/branch/main/docker_compose_v2_run_module.html b/branch/main/docker_compose_v2_run_module.html index 1fb9fc86..73c3fa42 100644 --- a/branch/main/docker_compose_v2_run_module.html +++ b/branch/main/docker_compose_v2_run_module.html @@ -732,7 +732,7 @@ will change over time. New releases of the Docker compose CLI plugin can break t - name: Run a simple command (command) community.docker.docker_compose_v2_run: service: foo - command: /bin/bash -c "ls -lah" + command: /bin/bash -c "ls -lah" chdir: /root register: result @@ -745,8 +745,8 @@ will change over time. New releases of the Docker compose CLI plugin can break t service: foo argv: - /bin/bash - - "-c" - - "ls -lah > /dev/stderr" + - "-c" + - "ls -lah > /dev/stderr" chdir: /root register: result diff --git a/branch/main/docker_config_module.html b/branch/main/docker_config_module.html index 47a30428..83fdf4f1 100644 --- a/branch/main/docker_config_module.html +++ b/branch/main/docker_config_module.html @@ -529,7 +529,7 @@ see # If the file is JSON or binary, Ansible might modify it (because # it is first decoded and later re-encoded). Base64-encoding the # file directly after reading it prevents this to happen. - data: "{{ lookup('file', '/path/to/config/file') | b64encode }}" + data: "{{ lookup('file', '/path/to/config/file') | b64encode }}" data_is_b64: true state: present @@ -545,7 +545,7 @@ see data: Goodnight everyone! labels: bar: baz - one: '1' + one: '1' state: present - name: Add a new label @@ -554,9 +554,9 @@ see data: Goodnight everyone! labels: bar: baz - one: '1' + one: '1' # Adding a new label will cause a remove/create of the config - two: '2' + two: '2' state: present - name: No change @@ -565,8 +565,8 @@ see data: Goodnight everyone! labels: bar: baz - one: '1' - # Even though 'two' is missing, there is no change to the existing config + one: '1' + # Even though 'two' is missing, there is no change to the existing config state: present - name: Update an existing label @@ -575,7 +575,7 @@ see data: Goodnight everyone! labels: bar: monkey # Changing a label will cause a remove/create of the config - one: '1' + one: '1' state: present - name: Force the (re-)creation of the config diff --git a/branch/main/docker_connection.html b/branch/main/docker_connection.html index 15450489..7f72bd12 100644 --- a/branch/main/docker_connection.html +++ b/branch/main/docker_connection.html @@ -238,7 +238,7 @@ To check whether it is installed, run
[docker_connection]
-extra_cli_args = ""
+extra_cli_args = ""
 
diff --git a/branch/main/docker_container_copy_into_module.html b/branch/main/docker_container_copy_into_module.html index eda46568..10a22a6d 100644 --- a/branch/main/docker_container_copy_into_module.html +++ b/branch/main/docker_container_copy_into_module.html @@ -568,8 +568,8 @@ Rejects everything that is not a string that can be parsed as an octal number. container_path: /bin/runme owner_id: 0 # root group_id: 0 # root - mode: "0755" # readable and executable by all users, writable by root - mode_parse: modern # ensure that strings passed for 'mode' are passed as octal numbers + mode: "0755" # readable and executable by all users, writable by root + mode_parse: modern # ensure that strings passed for 'mode' are passed as octal numbers diff --git a/branch/main/docker_container_exec_module.html b/branch/main/docker_container_exec_module.html index 84b0e3ab..59378454 100644 --- a/branch/main/docker_container_exec_module.html +++ b/branch/main/docker_container_exec_module.html @@ -524,7 +524,7 @@ see
- name: Run a simple command (command) community.docker.docker_container_exec: container: foo - command: /bin/bash -c "ls -lah" + command: /bin/bash -c "ls -lah" chdir: /root register: result @@ -537,8 +537,8 @@ see container: foo argv: - /bin/bash - - "-c" - - "ls -lah > /dev/stderr" + - "-c" + - "ls -lah > /dev/stderr" chdir: /root register: result diff --git a/branch/main/docker_container_info_module.html b/branch/main/docker_container_info_module.html index a3613d92..4d247185 100644 --- a/branch/main/docker_container_info_module.html +++ b/branch/main/docker_container_info_module.html @@ -430,7 +430,7 @@ see - name: Does container exist? ansible.builtin.debug: - msg: "The container {{ 'exists' if result.exists else 'does not exist' }}" + msg: "The container {{ 'exists' if result.exists else 'does not exist' }}" - name: Print information about container ansible.builtin.debug: diff --git a/branch/main/docker_container_module.html b/branch/main/docker_container_module.html index 5f109114..910657c4 100644 --- a/branch/main/docker_container_module.html +++ b/branch/main/docker_container_module.html @@ -1856,25 +1856,25 @@ see state: started restart: true links: - - "myredis:aliasedredis" + - "myredis:aliasedredis" devices: - - "/dev/sda:/dev/xvda:rwm" + - "/dev/sda:/dev/xvda:rwm" ports: # Publish container port 9000 as host port 8080 - - "8080:9000" + - "8080:9000" # Publish container UDP port 9001 as host port 8081 on interface 127.0.0.1 - - "127.0.0.1:8081:9001/udp" + - "127.0.0.1:8081:9001/udp" # Publish container port 9002 as a random host port - - "9002" + - "9002" # Publish container port 9003 as a free host port in range 8000-8100 # (the host port will be selected by the Docker daemon) - - "8000-8100:9003" + - "8000-8100:9003" # Publish container ports 9010-9020 to host ports 7000-7010 - - "7000-7010:9010-9020" + - "7000-7010:9010-9020" env: - SECRET_KEY: "ssssh" + SECRET_KEY: "ssssh" # Values which might be parsed as numbers, booleans or other types by the YAML parser need to be quoted - BOOLEAN_KEY: "yes" + BOOLEAN_KEY: "yes" - name: Container present community.docker.docker_container: @@ -1890,7 +1890,7 @@ see - name: Start 4 load-balanced containers community.docker.docker_container: - name: "container{{ item }}" + name: "container{{ item }}" recreate: true image: someuser/anotherappimage command: sleep 1d @@ -1909,16 +1909,16 @@ see log_options: syslog-address: tcp://my-syslog-server:514 syslog-facility: daemon - # NOTE: in Docker 1.13+ the "syslog-tag" option was renamed to "tag" for - # older docker installs, use "syslog-tag" instead + # NOTE: in Docker 1.13+ the "syslog-tag" option was renamed to "tag" for + # older docker installs, use "syslog-tag" instead tag: myservice - name: Create db container and connect to network community.docker.docker_container: name: db_test - image: "postgres:latest" + image: "postgres:latest" networks: - - name: "{{ docker_network_name }}" + - name: "{{ docker_network_name }}" - name: Start container, connect to network and link community.docker.docker_container: @@ -1926,7 +1926,7 @@ see image: ubuntu:14.04 networks: - name: TestingNet - ipv4_address: "172.16.1.100" + ipv4_address: "172.16.1.100" aliases: - sleepyzz links: @@ -1937,7 +1937,7 @@ see community.docker.docker_container: name: sleepy image: ubuntu:14.04 - command: ["sleep", "infinity"] + command: ["sleep", "infinity"] - name: Add container to networks community.docker.docker_container: @@ -1994,24 +1994,24 @@ see name: test image: ubuntu:18.04 env: - arg1: "true" - arg2: "whatever" + arg1: "true" + arg2: "whatever" volumes: - /tmp:/tmp comparisons: image: ignore # do not restart containers with older versions of the image env: strict # we want precisely this environment - volumes: allow_more_present # if there are more volumes, that's ok, as long as `/tmp:/tmp` is there + volumes: allow_more_present # if there are more volumes, that's ok, as long as `/tmp:/tmp` is there - name: Finer container restart/update control II community.docker.docker_container: name: test image: ubuntu:18.04 env: - arg1: "true" - arg2: "whatever" + arg1: "true" + arg2: "whatever" comparisons: - '*': ignore # by default, ignore *all* options (including image) + '*': ignore # by default, ignore *all* options (including image) env: strict # except for environment variables; there, we want to be strict - name: Start container with healthstatus @@ -2020,9 +2020,9 @@ see image: nginx:1.13 state: started healthcheck: - # Check if nginx server is healthy by curl'ing the server. + # Check if nginx server is healthy by curl'ing the server. # If this fails or timeouts, the healthcheck fails. - test: ["CMD", "curl", "--fail", "http://nginx.host.com"] + test: ["CMD", "curl", "--fail", "http://nginx.host.com"] interval: 1m30s timeout: 10s retries: 3 @@ -2035,8 +2035,8 @@ see image: nginx:1.13 state: started healthcheck: - # The "NONE" check needs to be specified - test: ["NONE"] + # The "NONE" check needs to be specified + test: ["NONE"] - name: Create a tmpfs with a size and mode community.docker.docker_container: @@ -2046,8 +2046,8 @@ see mounts: - type: tmpfs target: /cache - tmpfs_mode: "1700" # only readable to the owner - tmpfs_size: "16G" + tmpfs_mode: "1700" # only readable to the owner + tmpfs_size: "16G" - name: Start container with block device read limit community.docker.docker_container: @@ -2071,13 +2071,13 @@ see device_requests: # Add some specific devices to this container - device_ids: - - '0' - - 'GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a' + - '0' + - 'GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a' # Add nVidia GPUs to this container - driver: nvidia count: -1 # this means we want all capabilities: - # We have one OR condition: 'gpu' AND 'utility' + # We have one OR condition: 'gpu' AND 'utility' - - gpu - utility # See https://github.com/NVIDIA/nvidia-container-runtime#supported-driver-capabilities diff --git a/branch/main/docker_containers_inventory.html b/branch/main/docker_containers_inventory.html index 382d27ab..77df63fe 100644 --- a/branch/main/docker_containers_inventory.html +++ b/branch/main/docker_containers_inventory.html @@ -679,7 +679,7 @@ For example, an ansible.cfg entry (further up in the list) is overwritten by an keyed_groups: # Add containers with primary network foo to a network_foo group - prefix: network - key: 'docker_hostconfig.NetworkMode' + key: 'docker_hostconfig.NetworkMode' # Add Linux hosts to an os_linux group - prefix: os key: docker_platform @@ -694,15 +694,15 @@ For example, an ansible.cfg entry (further up in the list) is overwritten by an ansible_ssh_port: ansible_ssh_port | default(22, true) --- -# Only consider containers which have a label 'foo', or whose name starts with 'a' +# Only consider containers which have a label 'foo', or whose name starts with 'a' plugin: community.docker.docker_containers filters: - # Accept all containers which have a label called 'foo' + # Accept all containers which have a label called 'foo' - include: >- - "foo" in docker_config.Labels - # Next accept all containers whose inventory_hostname starts with 'a' + "foo" in docker_config.Labels + # Next accept all containers whose inventory_hostname starts with 'a' - include: >- - inventory_hostname.startswith("a") + inventory_hostname.startswith("a") # Exclude all containers that did not match any of the above filters - exclude: true diff --git a/branch/main/docker_context_info_module.html b/branch/main/docker_context_info_module.html index bef1da48..9a477755 100644 --- a/branch/main/docker_context_info_module.html +++ b/branch/main/docker_context_info_module.html @@ -289,7 +289,7 @@ To check whether it is installed, run - name: Show all contexts ansible.builtin.debug: - msg: "{{ result.contexts }}" + msg: "{{ result.contexts }}" - name: Get current context community.docker.docker_context_info: @@ -298,7 +298,7 @@ To check whether it is installed, run - name: Run community.docker modules with current context module_defaults: - group/community.docker.docker: "{{ docker_current_context.contexts[0].config }}" + group/community.docker.docker: "{{ docker_current_context.contexts[0].config }}" block: - name: Task using the current context community.docker.docker_container: diff --git a/branch/main/docker_host_info_module.html b/branch/main/docker_host_info_module.html index f847aae5..59a756e4 100644 --- a/branch/main/docker_host_info_module.html +++ b/branch/main/docker_host_info_module.html @@ -557,7 +557,7 @@ see community.docker.docker_host_info: images: true images_filters: - label: "mylabel" + label: "mylabel" register: result - name: Get info on docker host and verbose list images diff --git a/branch/main/docker_image_build_module.html b/branch/main/docker_image_build_module.html index b7f3df33..74bae699 100644 --- a/branch/main/docker_image_build_module.html +++ b/branch/main/docker_image_build_module.html @@ -689,7 +689,7 @@ Provides the secret from a given value - name: Build multi-platform image community.docker.docker_image_build: name: multi-platform-image - tag: "1.5.2" + tag: "1.5.2" path: /home/user/images/multi-platform platform: - linux/amd64 diff --git a/branch/main/docker_image_load_module.html b/branch/main/docker_image_load_module.html index 9d8b28e4..421443c0 100644 --- a/branch/main/docker_image_load_module.html +++ b/branch/main/docker_image_load_module.html @@ -444,7 +444,7 @@ see - name: Print the loaded image names ansible.builtin.debug: - msg: "Loaded the following images: {{ result.image_names | join(', ') }}" + msg: "Loaded the following images: {{ result.image_names | join(', ') }}" diff --git a/branch/main/docker_image_module.html b/branch/main/docker_image_module.html index 2acbff5f..7d5a492d 100644 --- a/branch/main/docker_image_module.html +++ b/branch/main/docker_image_module.html @@ -787,7 +787,7 @@ see community.docker.docker_image: name: myimage:7.1.2 repository: myimage:latest - # As 'latest' usually already is present, we need to enable overwriting of existing tags: + # As 'latest' usually already is present, we need to enable overwriting of existing tags: force_tag: true source: local diff --git a/branch/main/docker_machine_inventory.html b/branch/main/docker_machine_inventory.html index c2cda0a7..492a86ef 100644 --- a/branch/main/docker_machine_inventory.html +++ b/branch/main/docker_machine_inventory.html @@ -458,16 +458,16 @@ For example, an ansible.cfg entry (further up in the list) is overwritten by an # $ ansible-inventory -i ./path/to/docker-machine.yml --host=mymachine # { # ... -# "digitalocean": { -# "hosts": [ -# "mymachine" +# "digitalocean": { +# "hosts": [ +# "mymachine" # ] # ... # } plugin: community.docker.docker_machine strict: false keyed_groups: - - separator: '' + - separator: '' key: docker_machine_node_attributes.DriverName --- @@ -476,13 +476,13 @@ For example, an ansible.cfg entry (further up in the list) is overwritten by an strict: false keyed_groups: - prefix: tag - key: 'dm_tags' + key: 'dm_tags' --- # Example using compose to override the default SSH behaviour of asking the user to accept the remote host key plugin: community.docker.docker_machine compose: - ansible_ssh_common_args: '"-o StrictHostKeyChecking=accept-new"' + ansible_ssh_common_args: '"-o StrictHostKeyChecking=accept-new"'
diff --git a/branch/main/docker_network_info_module.html b/branch/main/docker_network_info_module.html index b4beded3..9d356195 100644 --- a/branch/main/docker_network_info_module.html +++ b/branch/main/docker_network_info_module.html @@ -430,7 +430,7 @@ see - name: Does network exist? ansible.builtin.debug: - msg: "The network {{ 'exists' if result.exists else 'does not exist' }}" + msg: "The network {{ 'exists' if result.exists else 'does not exist' }}" - name: Print information about network ansible.builtin.debug: diff --git a/branch/main/docker_network_module.html b/branch/main/docker_network_module.html index ffeadf22..601c6bd8 100644 --- a/branch/main/docker_network_module.html +++ b/branch/main/docker_network_module.html @@ -662,7 +662,7 @@ see - name: Remove a single container community.docker.docker_network: name: network_one - connected: "{{ fulllist|difference(['container_a']) }}" + connected: "{{ fulllist|difference(['container_a']) }}" - name: Add a container to a network, leaving existing containers connected community.docker.docker_network: diff --git a/branch/main/docker_plugin_module.html b/branch/main/docker_plugin_module.html index 765f08a5..0552d37b 100644 --- a/branch/main/docker_plugin_module.html +++ b/branch/main/docker_plugin_module.html @@ -498,8 +498,8 @@ see community.docker.docker_plugin: plugin_name: weaveworks/net-plugin:latest_release plugin_options: - IPALLOC_RANGE: "10.32.0.0/12" - WEAVE_PASSWORD: "PASSWORD" + IPALLOC_RANGE: "10.32.0.0/12" + WEAVE_PASSWORD: "PASSWORD"
diff --git a/branch/main/docker_prune_module.html b/branch/main/docker_prune_module.html index 7a44e7dc..029c01ef 100644 --- a/branch/main/docker_prune_module.html +++ b/branch/main/docker_prune_module.html @@ -550,17 +550,17 @@ see community.docker.docker_prune: containers: true containers_filters: - # Prune containers whose "foo" label has value "bar", and - # whose "bam" label has value "baz". If you only want to + # Prune containers whose "foo" label has value "bar", and + # whose "bam" label has value "baz". If you only want to # compare one label, you can provide it as a string instead # of a list with one element. label: - foo=bar - bam=baz - # Prune containers whose label "bar" does *not* have value - # "baz". If you want to avoid more than one label, you can + # Prune containers whose label "bar" does *not* have value + # "baz". If you want to avoid more than one label, you can # provide a list of multiple label-value pairs. - "label!": bar=baz + "label!": bar=baz - name: Prune everything community.docker.docker_prune: diff --git a/branch/main/docker_secret_module.html b/branch/main/docker_secret_module.html index d2c4c805..41165244 100644 --- a/branch/main/docker_secret_module.html +++ b/branch/main/docker_secret_module.html @@ -517,7 +517,7 @@ see # If the file is JSON or binary, Ansible might modify it (because # it is first decoded and later re-encoded). Base64-encoding the # file directly after reading it prevents this to happen. - data: "{{ lookup('file', '/path/to/secret/file') | b64encode }}" + data: "{{ lookup('file', '/path/to/secret/file') | b64encode }}" data_is_b64: true state: present @@ -533,7 +533,7 @@ see data: Goodnight everyone! labels: bar: baz - one: '1' + one: '1' state: present - name: Add a new label @@ -542,9 +542,9 @@ see data: Goodnight everyone! labels: bar: baz - one: '1' + one: '1' # Adding a new label will cause a remove/create of the secret - two: '2' + two: '2' state: present - name: No change @@ -553,8 +553,8 @@ see data: Goodnight everyone! labels: bar: baz - one: '1' - # Even though 'two' is missing, there is no change to the existing secret + one: '1' + # Even though 'two' is missing, there is no change to the existing secret state: present - name: Update an existing label @@ -563,7 +563,7 @@ see data: Goodnight everyone! labels: bar: monkey # Changing a label will cause a remove/create of the secret - one: '1' + one: '1' state: present - name: Force the removal/creation of the secret diff --git a/branch/main/docker_stack_module.html b/branch/main/docker_stack_module.html index c4177531..1afcaa50 100644 --- a/branch/main/docker_stack_module.html +++ b/branch/main/docker_stack_module.html @@ -506,7 +506,7 @@ see name: mystack compose: - /opt/docker-compose.yml - - version: '3' + - version: '3' services: web: image: nginx:latest diff --git a/branch/main/docker_swarm_inventory.html b/branch/main/docker_swarm_inventory.html index 278fce19..65241571 100644 --- a/branch/main/docker_swarm_inventory.html +++ b/branch/main/docker_swarm_inventory.html @@ -576,14 +576,14 @@ For example, an ansible.cfg entry (further up in the list) is overwritten by an keyed_groups: # add for example x86_64 hosts to an arch_x86_64 group - prefix: arch - key: 'Description.Platform.Architecture' + key: 'Description.Platform.Architecture' # add for example linux hosts to an os_linux group - prefix: os - key: 'Description.Platform.OS' + key: 'Description.Platform.OS' # create a group per node label - # for exomple a node labeled w/ "production" ends up in group "label_production" + # for exomple a node labeled w/ "production" ends up in group "label_production" # hint: labels containing special characters will be converted to safe names - - key: 'Spec.Labels' + - key: 'Spec.Labels' prefix: label diff --git a/branch/main/docker_swarm_module.html b/branch/main/docker_swarm_module.html index 744156bc..bacf24a7 100644 --- a/branch/main/docker_swarm_module.html +++ b/branch/main/docker_swarm_module.html @@ -690,7 +690,7 @@ see state: join advertise_addr: 192.168.1.2 join_token: SWMTKN-1--xxxxx - remote_addrs: ['192.168.1.1:2377'] + remote_addrs: ['192.168.1.1:2377'] - name: Leave swarm for a node community.docker.docker_swarm: diff --git a/branch/main/docker_swarm_service_module.html b/branch/main/docker_swarm_service_module.html index 27ab39f3..0265f63c 100644 --- a/branch/main/docker_swarm_service_module.html +++ b/branch/main/docker_swarm_service_module.html @@ -1332,7 +1332,7 @@ see image: alpine command: sleep args: - - "3600" + - "3600" - name: Set a bind mount community.docker.docker_swarm_service: @@ -1348,8 +1348,8 @@ see name: myservice image: alpine labels: - com.example.description: "Accounting webapp" - com.example.department: "Finance" + com.example.description: "Accounting webapp" + com.example.department: "Finance" - name: Set environment variables community.docker.docker_swarm_service: @@ -1369,8 +1369,8 @@ see logging: driver: fluentd options: - fluentd-address: "127.0.0.1:24224" - fluentd-async-connect: "true" + fluentd-address: "127.0.0.1:24224" + fluentd-async-connect: "true" tag: myservice - name: Set restart policies @@ -1421,7 +1421,7 @@ see image: alpine:edge configs: - config_name: myconfig_name - filename: "/tmp/config.txt" + filename: "/tmp/config.txt" - name: Set networks community.docker.docker_swarm_service: @@ -1435,9 +1435,9 @@ see name: myservice image: alpine:edge networks: - - name: "mynetwork" + - name: "mynetwork" aliases: - - "mynetwork_alias" + - "mynetwork_alias" options: foo: bar @@ -1447,16 +1447,16 @@ see image: alpine:edge secrets: - secret_name: mysecret_name - filename: "/run/secrets/secret.txt" + filename: "/run/secrets/secret.txt" - name: Start service with healthcheck community.docker.docker_swarm_service: name: myservice image: nginx:1.13 healthcheck: - # Check if nginx server is healthy by curl'ing the server. + # Check if nginx server is healthy by curl'ing the server. # If this fails or timeouts, the healthcheck fails. - test: ["CMD", "curl", "--fail", "http://nginx.host.com"] + test: ["CMD", "curl", "--fail", "http://nginx.host.com"] interval: 1m30s timeout: 10s retries: 3 diff --git a/branch/main/docker_volume_info_module.html b/branch/main/docker_volume_info_module.html index f06bff1e..ea916959 100644 --- a/branch/main/docker_volume_info_module.html +++ b/branch/main/docker_volume_info_module.html @@ -430,7 +430,7 @@ see - name: Does volume exist? ansible.builtin.debug: - msg: "The volume {{ 'exists' if result.exists else 'does not exist' }}" + msg: "The volume {{ 'exists' if result.exists else 'does not exist' }}" - name: Print information about volume ansible.builtin.debug: diff --git a/branch/main/docsite/scenario_guide.html b/branch/main/docsite/scenario_guide.html index 6f4359e4..807221d5 100644 --- a/branch/main/docsite/scenario_guide.html +++ b/branch/main/docsite/scenario_guide.html @@ -200,7 +200,7 @@

For Python 2.7, you need to use a version between 2.0.0 and 4.4.4 since the Python package for Docker removed support for Python 2.7 on 5.0.0. You can install the specific version of the Docker SDK for Python as follows:

-
$ pip install 'docker==4.4.4'
+
$ pip install 'docker==4.4.4'
 

Note that the Docker SDK for Python was called docker-py on PyPi before version 2.0.0. Please avoid installing this really old version, and make sure to not install both docker and docker-py. Installing both will result in a broken installation. If this happens, Ansible will detect it and inform you about it. If that happens, you must uninstall both and reinstall the correct version. If in doubt, always install docker and never docker-py.

@@ -277,7 +277,7 @@ - name: Show output ansible.builtin.debug: - msg: "{{ output.container.Output }}" + msg: "{{ output.container.Output }}"

Here the two community.docker tasks will use the options set for the module defaults group.