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: "{{ nextcloud_upstream_file_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
become: yes
|
||||
become: true
|
||||
listen: "update nextcloud upstream"
|
||||
|
||||
- name: Update upstream template
|
||||
ansible.builtin.template:
|
||||
src: upstream.json.j2
|
||||
dest: "{{ nextcloud_upstream_file_dir }}/upstream.json"
|
||||
become: yes
|
||||
become: true
|
||||
listen: "update nextcloud 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 nextcloud 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 nextcloud upstream"
|
||||
|
||||
|
|
@ -41,13 +41,13 @@
|
|||
container: "{{ caddy_container_id }}"
|
||||
command: >
|
||||
curl -X POST -H "Content-Type: application/json" -d @{{ nextcloud_upstream_file_dir }}/upstream.json localhost:2019/config/apps/http/servers/{{ (nextcloud_use_https == True) | ternary(caddy_https_server_name, caddy_http_server_name) }}/routes/0/
|
||||
become: yes
|
||||
become: true
|
||||
listen: "update nextcloud upstream"
|
||||
|
||||
- name: Ensure upstream directory is gone again
|
||||
ansible.builtin.file:
|
||||
path: "{{ nextcloud_upstream_file_dir }}"
|
||||
state: absent
|
||||
become: yes
|
||||
become: true
|
||||
listen: "update nextcloud upstream"
|
||||
|
||||
|
|
|
|||
|
|
@ -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 nextcloud upstream"
|
||||
|
||||
- name: Ensure target directory exists
|
||||
|
|
@ -15,14 +15,14 @@
|
|||
path: "{{ nextcloud_upstream_file_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
become: yes
|
||||
become: true
|
||||
notify: "update nextcloud upstream"
|
||||
|
||||
- name: Move webserver Caddyfile to target dir
|
||||
ansible.builtin.copy:
|
||||
src: "Caddyfile"
|
||||
dest: "{{ nextcloud_upstream_file_dir }}/Caddyfile"
|
||||
become: yes
|
||||
become: true
|
||||
notify: "update nextcloud upstream"
|
||||
|
||||
- name: Deploy to swarm
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
prune: yes
|
||||
compose:
|
||||
- "{{ stack_compose }}"
|
||||
become: yes
|
||||
become: true
|
||||
tags:
|
||||
- docker-swarm
|
||||
notify: "update nextcloud upstream"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue