--- - name: Create ezbookkeeping directory ansible.builtin.file: path: "{{ node['home_path'] }}/{{ item }}" state: "directory" owner: "{{ services['ezbookkeeping']['subuid'] }}" group: "svadmins" mode: "0770" loop: - "data/containers/ezbookkeeping" - "data/containers/ezbookkeeping/data" - "containers/ezbookkeeping" - "containers/ezbookkeeping/ssl" become: true - name: Deploy root certificate ansible.builtin.copy: content: | {{ hostvars['console']['ca']['root']['crt'] }} dest: "{{ node['home_path'] }}/containers/ezbookkeeping/ssl/{{ root_cert_filename }}" owner: "{{ services['ezbookkeeping']['subuid'] }}" group: "svadmins" mode: "0440" become: true notify: "notification_restart_ezbookkeeping" no_log: true - name: Register secret value to podman secret containers.podman.podman_secret: name: "{{ item.name }}" data: "{{ item.value }}" state: "present" force: true loop: - name: "EBK_AUTH_OAUTH2_CLIENT_SECRET" value: "{{ hostvars['console']['ezbookkeeping']['oidc']['secret'] }}" - name: "EBK_DATABASE_PASSWD" value: "{{ hostvars['console']['postgresql']['password']['ezbookkeeping'] }}" notify: "notification_restart_ezbookkeeping" no_log: true - name: Deploy ezbookkeeping.container file ansible.builtin.template: src: "{{ hostvars['console']['node']['config_path'] }}/services/containers/app/ezbookkeeping/ezbookkeeping.container.j2" dest: "{{ node['home_path'] }}/.config/containers/systemd/ezbookkeeping.container" owner: "{{ ansible_user }}" group: "svadmins" mode: "0644" notify: "notification_restart_ezbookkeeping" - name: Enable ezbookkeeping.service ansible.builtin.systemd: name: "ezbookkeeping.service" state: "started" enabled: true daemon_reload: true scope: "user"