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

@ -4,14 +4,14 @@
path: "{{ wallabag_upstream_file_dir }}"
state: directory
mode: '0755'
become: yes
become: true
listen: "update wallabag upstream"
- name: Update upstream template
ansible.builtin.template:
src: upstream.json.j2
dest: "{{ wallabag_upstream_file_dir }}/upstream.json"
become: yes
become: true
listen: "update wallabag upstream"
# figure out if upstream id exists
@ -22,7 +22,7 @@
curl localhost:2019/id/{{ stack.name }}_upstream/
changed_when: False
register: result
become: yes
become: true
listen: "update wallabag upstream"
# upstream already exists, patch it
@ -31,7 +31,7 @@
container: "{{ caddy_container_id }}"
command: >
curl -X DELETE localhost:2019/id/{{ stack.name }}_upstream/
become: yes
become: true
when: (result.stdout | from_json)['error'] is not defined
listen: "update wallabag upstream"
@ -41,13 +41,13 @@
container: "{{ caddy_container_id }}"
command: >
curl -X POST -H "Content-Type: application/json" -d @{{ wallabag_upstream_file_dir }}/upstream.json localhost:2019/config/apps/http/servers/{{ (wallabag_use_https == True) | ternary(caddy_https_server_name, caddy_http_server_name) }}/routes/0/
become: yes
become: true
listen: "update wallabag upstream"
- name: Ensure upstream directory is gone again
ansible.builtin.file:
path: "{{ wallabag_upstream_file_dir }}"
state: absent
become: yes
become: true
listen: "update wallabag upstream"

View file

@ -7,7 +7,7 @@
curl localhost:2019/id/{{ stack.name }}_upstream/
register: result
changed_when: (result.stdout | from_json) != (lookup('template', 'upstream.json.j2') | from_yaml)
become: yes
become: true
notify: "update wallabag upstream"
- name: Deploy wallabag to swarm
@ -18,7 +18,7 @@
compose:
- "{{ stack.compose }}"
when: stack is defined
become: yes
become: true
tags:
- docker-swarm
notify: "update wallabag upstream"