Change become arguments to boolean

Changed all 'become: ' values from 'yes' to 'true' to satisfy the schema
(and also make the lsp shut up).
This commit is contained in:
Marty Oehme 2022-12-18 16:02:32 +01:00
parent 385cb3859c
commit 7d8408f9f8
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9
28 changed files with 124 additions and 125 deletions

View file

@ -27,14 +27,14 @@
compose:
- "{{ caddy_stack.compose }}"
when: caddy_stack is defined
become: yes
become: true
tags:
- docker-swarm
- name: Get caddy container info
ansible.builtin.command:
cmd: docker ps -q -f name={{ caddy_stack.name }}
become: yes
become: true
# bringing up the container takes some time, we have to wait
until: caddy_container_info['rc'] == 0 and caddy_container_info['stdout'] | length >= 1
retries: 5
@ -53,7 +53,7 @@
container: "{{ caddy_container_id }}"
command: >
apk add curl
become: yes
become: true
register: result
changed_when: "'Installing' in result.stdout"
@ -62,7 +62,7 @@
container: "{{ caddy_container_id }}"
command: >
curl localhost:2019/config/
become: yes
become: true
until: result.rc == 0
when: caddy_use_api == True
changed_when: False