mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-05-04 14:52:52 +00:00
Change yes/no to true/false in the modules (#561)
Fix #560 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
dba0d78844
commit
0332db2aad
12 changed files with 33 additions and 33 deletions
|
|
@ -851,7 +851,7 @@ EXAMPLES = r"""
|
|||
image: redis
|
||||
command: redis-server --appendonly yes
|
||||
state: present
|
||||
recreate: yes
|
||||
recreate: true
|
||||
expose:
|
||||
- 6379
|
||||
volumes_from:
|
||||
|
|
@ -868,7 +868,7 @@ EXAMPLES = r"""
|
|||
name: myapplication
|
||||
image: redis
|
||||
state: started
|
||||
restart: yes
|
||||
restart: true
|
||||
etc_hosts:
|
||||
other: "127.0.0.1"
|
||||
restart_policy: "no"
|
||||
|
|
@ -895,7 +895,7 @@ EXAMPLES = r"""
|
|||
- name: Start 4 load-balanced containers
|
||||
containers.podman.podman_container:
|
||||
name: "container{{ item }}"
|
||||
recreate: yes
|
||||
recreate: true
|
||||
image: someuser/anotherappimage
|
||||
command: sleep 1d
|
||||
with_sequence: count=4
|
||||
|
|
|
|||
|
|
@ -157,9 +157,9 @@ EXAMPLES = '''
|
|||
- name: Ensure postgres container is started and enabled
|
||||
ansible.builtin.systemd:
|
||||
name: container-postgres
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
|
||||
|
||||
# Example of creating a container and integrate it into systemd
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ EXAMPLES = r"""
|
|||
path: /path/to/build/dir
|
||||
build:
|
||||
cache: no
|
||||
force_rm: yes
|
||||
force_rm: true
|
||||
format: oci
|
||||
annotation:
|
||||
app: nginx
|
||||
|
|
@ -219,14 +219,14 @@ EXAMPLES = r"""
|
|||
containers.podman.podman_image:
|
||||
name: nginx
|
||||
path: /path/to/build/dir
|
||||
push: yes
|
||||
push: true
|
||||
push_args:
|
||||
dest: quay.io/acme
|
||||
|
||||
- name: Build and push an image using an auth file
|
||||
containers.podman.podman_image:
|
||||
name: nginx
|
||||
push: yes
|
||||
push: true
|
||||
auth_file: /etc/containers/auth.json
|
||||
push_args:
|
||||
dest: quay.io/acme
|
||||
|
|
@ -234,7 +234,7 @@ EXAMPLES = r"""
|
|||
- name: Build and push an image using username and password
|
||||
containers.podman.podman_image:
|
||||
name: nginx
|
||||
push: yes
|
||||
push: true
|
||||
username: bugs
|
||||
password: "{{ vault_registry_password }}"
|
||||
push_args:
|
||||
|
|
@ -244,7 +244,7 @@ EXAMPLES = r"""
|
|||
containers.podman.podman_image:
|
||||
name: "{{ item }}"
|
||||
path: /path/to/build/dir
|
||||
push: yes
|
||||
push: true
|
||||
auth_file: /etc/containers/auth.json
|
||||
loop:
|
||||
- quay.io/acme/nginx
|
||||
|
|
@ -255,7 +255,7 @@ EXAMPLES = r"""
|
|||
name: "{{ item.name }}"
|
||||
tag: "{{ item.tag }}"
|
||||
path: /path/to/build/dir
|
||||
push: yes
|
||||
push: true
|
||||
auth_file: /etc/containers/auth.json
|
||||
push_args:
|
||||
dest: "{{ item.dest }}"
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ options:
|
|||
(for docker e.g. `${HOME}/.docker/config.json`), module execution will
|
||||
fail if a docker login exists for the registry specified in any
|
||||
`authfile` is used by podman. This can be ignored by setting
|
||||
`ignore_docker_credentials` to `yes` - the credentials will be kept and
|
||||
`ignore_docker_credentials` to `true` - the credentials will be kept and
|
||||
`changed` will be false.
|
||||
This option cannot be used together with `all` since in this case
|
||||
podman will not check for existing `authfiles` created by other tools.
|
||||
|
|
@ -75,12 +75,12 @@ EXAMPLES = r"""
|
|||
|
||||
- name: Log out of all registries in auth file
|
||||
podman_logout:
|
||||
all: yes
|
||||
all: true
|
||||
|
||||
- name: Log out of all registries in specified auth file
|
||||
podman_logout:
|
||||
authfile: $HOME/.docker/config.json
|
||||
all: yes
|
||||
all: true
|
||||
"""
|
||||
# noqa: F402
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue