mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Fix typos and spelling errors (#639)
Found with codespell Signed-off-by: Andrew Imeson <andrew@andrewimeson.com>
This commit is contained in:
parent
65d9d49aa4
commit
18a939a167
12 changed files with 22 additions and 22 deletions
|
|
@ -298,7 +298,7 @@ Bugfixes
|
||||||
- Don't add newlines to secrets
|
- Don't add newlines to secrets
|
||||||
- Fix issue with podman and exposed ports
|
- Fix issue with podman and exposed ports
|
||||||
- Fix signal diff for truncated and RT signal names
|
- Fix signal diff for truncated and RT signal names
|
||||||
- Support empty stings in prefixes
|
- Support empty strings in prefixes
|
||||||
- Update error message when pull set to false
|
- Update error message when pull set to false
|
||||||
|
|
||||||
v1.8.1
|
v1.8.1
|
||||||
|
|
|
||||||
|
|
@ -429,7 +429,7 @@ releases:
|
||||||
- Don't add newlines to secrets
|
- Don't add newlines to secrets
|
||||||
- Fix issue with podman and exposed ports
|
- Fix issue with podman and exposed ports
|
||||||
- Fix signal diff for truncated and RT signal names
|
- Fix signal diff for truncated and RT signal names
|
||||||
- Support empty stings in prefixes
|
- Support empty strings in prefixes
|
||||||
- Update error message when pull set to false
|
- Update error message when pull set to false
|
||||||
release_summary: Fixes for various modules
|
release_summary: Fixes for various modules
|
||||||
release_date: '2021-11-09'
|
release_date: '2021-11-09'
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -390,7 +390,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="examples">
|
<div class="section" id="examples">
|
||||||
<h2><a class="toc-backref" href="#id5">Examples</a><a class="headerlink" href="#examples" title="Permalink to this heading">¶</a></h2>
|
<h2><a class="toc-backref" href="#id5">Examples</a><a class="headerlink" href="#examples" title="Permalink to this heading">¶</a></h2>
|
||||||
<div class="highlight-yaml+jinja notranslate"><div class="highlight"><pre><span></span><span class="c1"># Exemple of creating a container and integrate it into systemd</span><span class="w"></span>
|
<div class="highlight-yaml+jinja notranslate"><div class="highlight"><pre><span></span><span class="c1"># Example of creating a container and integrate it into systemd</span><span class="w"></span>
|
||||||
<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">A postgres container must exist, stopped</span><span class="w"></span>
|
<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">A postgres container must exist, stopped</span><span class="w"></span>
|
||||||
<span class="w"> </span><span class="nt">containers.podman.podman_container</span><span class="p">:</span><span class="w"></span>
|
<span class="w"> </span><span class="nt">containers.podman.podman_container</span><span class="p">:</span><span class="w"></span>
|
||||||
<span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">postgres_local</span><span class="w"></span>
|
<span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">postgres_local</span><span class="w"></span>
|
||||||
|
|
@ -411,7 +411,7 @@
|
||||||
|
|
||||||
|
|
||||||
<span class="c1"># Generate the unit files, but store them on an Ansible variable</span><span class="w"></span>
|
<span class="c1"># Generate the unit files, but store them on an Ansible variable</span><span class="w"></span>
|
||||||
<span class="c1"># instead of writting them on target host</span><span class="w"></span>
|
<span class="c1"># instead of writing them on target host</span><span class="w"></span>
|
||||||
<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Systemd unit files for postgres container must be generated</span><span class="w"></span>
|
<span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Systemd unit files for postgres container must be generated</span><span class="w"></span>
|
||||||
<span class="w"> </span><span class="nt">containers.podman.podman_generate_systemd</span><span class="p">:</span><span class="w"></span>
|
<span class="w"> </span><span class="nt">containers.podman.podman_generate_systemd</span><span class="p">:</span><span class="w"></span>
|
||||||
<span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">postgres_local</span><span class="w"></span>
|
<span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">postgres_local</span><span class="w"></span>
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ EXAMPLES = r'''
|
||||||
command: "cat redhat-release"
|
command: "cat redhat-release"
|
||||||
workdir: /etc
|
workdir: /etc
|
||||||
|
|
||||||
- name: Execute a command with a list of args and enviroment variables
|
- name: Execute a command with a list of args and environment variables
|
||||||
containers.podman.podman_container_exec:
|
containers.podman.podman_container_exec:
|
||||||
name: test_container
|
name: test_container
|
||||||
argv:
|
argv:
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ EXAMPLES = r"""
|
||||||
|
|
||||||
RETURN = r"""
|
RETURN = r"""
|
||||||
containers:
|
containers:
|
||||||
description: Facts from all or specificed containers
|
description: Facts from all or specified containers
|
||||||
returned: always
|
returned: always
|
||||||
type: list
|
type: list
|
||||||
elements: dict
|
elements: dict
|
||||||
|
|
|
||||||
|
|
@ -394,7 +394,7 @@ def generate_systemd(module):
|
||||||
|
|
||||||
# In case of error in running the command
|
# In case of error in running the command
|
||||||
if return_code != 0:
|
if return_code != 0:
|
||||||
# Print informations about the error and return and empty dictionary
|
# Print information about the error and return and empty dictionary
|
||||||
message = 'Error generating systemd .service unit(s).'
|
message = 'Error generating systemd .service unit(s).'
|
||||||
message += ' Command executed: {command_str}'
|
message += ' Command executed: {command_str}'
|
||||||
message += ' Command returned with code: {return_code}.'
|
message += ' Command returned with code: {return_code}.'
|
||||||
|
|
@ -431,7 +431,7 @@ def generate_systemd(module):
|
||||||
changed = True
|
changed = True
|
||||||
# If destination exist but not a directory
|
# If destination exist but not a directory
|
||||||
if not os.path.isdir(systemd_units_dest):
|
if not os.path.isdir(systemd_units_dest):
|
||||||
# Stop and tell user that the destination is not a directry
|
# Stop and tell user that the destination is not a directory
|
||||||
message = "Destination {systemd_units_dest} is not a directory."
|
message = "Destination {systemd_units_dest} is not a directory."
|
||||||
message += " Can't save systemd unit files in."
|
message += " Can't save systemd unit files in."
|
||||||
module.fail_json(
|
module.fail_json(
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ DOCUMENTATION = r'''
|
||||||
options:
|
options:
|
||||||
arch:
|
arch:
|
||||||
description:
|
description:
|
||||||
- CPU architecutre for the container image
|
- CPU architecture for the container image
|
||||||
type: str
|
type: str
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
|
|
@ -66,17 +66,17 @@ options:
|
||||||
type: dict
|
type: dict
|
||||||
system:
|
system:
|
||||||
description:
|
description:
|
||||||
- Wheter to prune unused pods, containers, image, networks and volume data
|
- Whether to prune unused pods, containers, image, networks and volume data
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
system_all:
|
system_all:
|
||||||
description:
|
description:
|
||||||
- Wheter to prune all unused images, not only dangling images.
|
- Whether to prune all unused images, not only dangling images.
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
system_volumes:
|
system_volumes:
|
||||||
description:
|
description:
|
||||||
- Wheter to prune volumes currently unused by any container.
|
- Whether to prune volumes currently unused by any container.
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
volume:
|
volume:
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,7 @@
|
||||||
assert:
|
assert:
|
||||||
that: test29 is not changed
|
that: test29 is not changed
|
||||||
|
|
||||||
- name: Remove dependant test container
|
- name: Remove dependent test container
|
||||||
containers.podman.podman_container:
|
containers.podman.podman_container:
|
||||||
executable: "{{ test_executable | default('podman') }}"
|
executable: "{{ test_executable | default('podman') }}"
|
||||||
name: idempotency2
|
name: idempotency2
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
checksum2: "{{ item.stat.checksum }}"
|
checksum2: "{{ item.stat.checksum }}"
|
||||||
with_items: "{{ unitfile2.results }}"
|
with_items: "{{ unitfile2.results }}"
|
||||||
|
|
||||||
- name: Check if the sytemd unit files are as expected
|
- name: Check if the systemd unit files are as expected
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- generate1 is not changed
|
- generate1 is not changed
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
containers.podman.podman_image_info:
|
containers.podman.podman_image_info:
|
||||||
executable: "{{ test_executable | default('podman') }}"
|
executable: "{{ test_executable | default('podman') }}"
|
||||||
name: nope
|
name: nope
|
||||||
register: single_nonexistant
|
register: single_nonexistent
|
||||||
|
|
||||||
- name: Get info on multiple images that do not exist
|
- name: Get info on multiple images that do not exist
|
||||||
containers.podman.podman_image_info:
|
containers.podman.podman_image_info:
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
name:
|
name:
|
||||||
- nope
|
- nope
|
||||||
- reallynope
|
- reallynope
|
||||||
register: multiple_nonexistant
|
register: multiple_nonexistent
|
||||||
|
|
||||||
- name: Get info with one image that does not exist
|
- name: Get info with one image that does not exist
|
||||||
containers.podman.podman_image_info:
|
containers.podman.podman_image_info:
|
||||||
|
|
@ -56,11 +56,11 @@
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
- nope
|
- nope
|
||||||
- etcd
|
- etcd
|
||||||
register: mixed_nonexistant
|
register: mixed_nonexistent
|
||||||
|
|
||||||
- name: Ensure image info was returned when non-existant image info was requisted
|
- name: Ensure image info was returned when non-existent image info was requisted
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- single_nonexistant.images | length == 0
|
- single_nonexistent.images | length == 0
|
||||||
- multiple_nonexistant.images | length == 0
|
- multiple_nonexistent.images | length == 0
|
||||||
- mixed_nonexistant.images | length == 2
|
- mixed_nonexistent.images | length == 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue