Change actual role user > username

This commit is contained in:
Thomas Kleinendorst 2024-04-13 15:26:58 +02:00
parent 21237b64c0
commit 77c9614321
2 changed files with 6 additions and 6 deletions

View file

@ -8,19 +8,19 @@
ansible.builtin.include_role: ansible.builtin.include_role:
name: user name: user
vars: vars:
user_username: "{{ actual_user }}" user_username: "{{ actual_username }}"
user_password: "{{ actual_password }}" user_password: "{{ actual_password }}"
- name: Create a directory for holding actual's (volume) data - name: Create a directory for holding actual's (volume) data
become: true become: true
become_user: "{{ actual_user }}" become_user: "{{ actual_username }}"
ansible.builtin.file: ansible.builtin.file:
path: "/home/{{ actual_user }}/actual_data" path: "/home/{{ actual_username }}/actual_data"
state: directory state: directory
mode: '0700' mode: '0700'
# Unfortunatelly I can't set the web password in the container, a user has to manually do this on startup. # Unfortunatelly I can't set the web password in the container, a user has to manually do this on startup.
- name: Start the Actual container - name: Start the Actual container
become: true become: true
become_user: "{{ actual_user }}" become_user: "{{ actual_username }}"
containers.podman.podman_container: containers.podman.podman_container:
name: actual-server name: actual-server
image: docker.io/actualbudget/actual-server:24.4.0 image: docker.io/actualbudget/actual-server:24.4.0
@ -28,7 +28,7 @@
publish: publish:
- 127.0.0.1:5006:5006 - 127.0.0.1:5006:5006
volumes: volumes:
- "/home/{{ actual_user }}/actual_data:/data" - "/home/{{ actual_username }}/actual_data:/data"
state: started state: started
- name: Install certificate for actual.kleinendorst.info - name: Install certificate for actual.kleinendorst.info
become: true become: true

View file

@ -1,2 +1,2 @@
--- ---
actual_user: actual actual_username: actual