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:
parent
385cb3859c
commit
7d8408f9f8
28 changed files with 124 additions and 125 deletions
|
|
@ -4,14 +4,14 @@
|
|||
path: "{{ searx_upstream_file_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
become: yes
|
||||
become: true
|
||||
listen: "update searx upstream"
|
||||
|
||||
- name: Update upstream template
|
||||
ansible.builtin.template:
|
||||
src: upstream.json.j2
|
||||
dest: "{{ searx_upstream_file_dir }}/upstream.json"
|
||||
become: yes
|
||||
become: true
|
||||
listen: "update searx 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 searx 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 searx upstream"
|
||||
|
||||
|
|
@ -41,13 +41,13 @@
|
|||
container: "{{ caddy_container_id }}"
|
||||
command: >
|
||||
curl -X POST -H "Content-Type: application/json" -d @{{ searx_upstream_file_dir }}/upstream.json localhost:2019/config/apps/http/servers/{{ (searx_use_https == True) | ternary(caddy_https_server_name, caddy_http_server_name) }}/routes/0/
|
||||
become: yes
|
||||
become: true
|
||||
listen: "update searx upstream"
|
||||
|
||||
- name: Ensure upstream directory is gone again
|
||||
ansible.builtin.file:
|
||||
path: "{{ searx_upstream_file_dir }}"
|
||||
state: absent
|
||||
become: yes
|
||||
become: true
|
||||
listen: "update searx upstream"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue