feat: casting int for older ansible compat
This commit is contained in:
parent
5866c3c83b
commit
cd8e72df7a
2 changed files with 20 additions and 20 deletions
|
|
@ -29,15 +29,15 @@
|
|||
|
||||
- name: Podman Seafile | AUDIT | Parse outputs of getsubids and store results
|
||||
ansible.builtin.set_fact:
|
||||
_podman_seafile_user_subuid_start: "{{ (_podman_seafile_user_subuid.stdout_lines[0].split()[2] | int) }}"
|
||||
_podman_seafile_user_subgid_start: "{{ (_podman_seafile_user_subgid.stdout_lines[0].split()[2] | int) }}"
|
||||
_podman_seafile_user_subuid_start: "{{ _podman_seafile_user_subuid.stdout_lines[0].split()[2] }}"
|
||||
_podman_seafile_user_subgid_start: "{{ _podman_seafile_user_subgid.stdout_lines[0].split()[2] }}"
|
||||
|
||||
# MySQL runs with UID/GID 999 inside the container
|
||||
- name: Podman Seafile | PATCH | Create data directory for MySQL
|
||||
ansible.builtin.file:
|
||||
path: "/home/{{ podman_seafile_podman_rootless_user }}/mysql_data"
|
||||
owner: "{{ _podman_seafile_user_subuid_start + 998 }}"
|
||||
group: "{{ _podman_seafile_user_subgid_start + 998 }}"
|
||||
owner: "{{ (_podman_seafile_user_subuid_start | int) + 998 }}"
|
||||
group: "{{ (_podman_seafile_user_subgid_start | int) + 998 }}"
|
||||
mode: "0750"
|
||||
state: "directory"
|
||||
become: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue