setup the app using ppm setup
This commit is contained in:
parent
1df77aa74d
commit
cd8e0cbad7
1 changed files with 22 additions and 0 deletions
|
|
@ -34,3 +34,25 @@
|
||||||
- name: "Bootstrap the app definition ({{ ppm_app.user }})"
|
- name: "Bootstrap the app definition ({{ ppm_app.user }})"
|
||||||
ansible.builtin.include_tasks: copyappdef.yml
|
ansible.builtin.include_tasks: copyappdef.yml
|
||||||
when: ppm_app.chicken_egg_appdefinition is defined and not appdefinition.stat.exists
|
when: ppm_app.chicken_egg_appdefinition is defined and not appdefinition.stat.exists
|
||||||
|
|
||||||
|
- name: "Set up extra files for {{ ppm_app.user }}"
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ item.from }}"
|
||||||
|
dest: "{{ ppm_app_user.home }}/{{ item.to }}"
|
||||||
|
mode: "{{ item.mode | default('0644') }}"
|
||||||
|
owner: "{{ ppm_app_user.name }}"
|
||||||
|
group: "{{ ppm_app_user.group }}"
|
||||||
|
loop: "{{ ppm_app.extra_files | default([]) }}"
|
||||||
|
|
||||||
|
- name: "Setup and run app ({{ ppm_app.user }})"
|
||||||
|
ansible.builtin.command: ppm setup --start
|
||||||
|
register: ppm_setupstart
|
||||||
|
changed_when: "'No changes have been made, everything was already ok' not in ppm_setupstart.stdout"
|
||||||
|
become: true
|
||||||
|
become_user: "{{ ppm_app.user }}"
|
||||||
|
environment:
|
||||||
|
XDG_RUNTIME_DIR: "/run/user/{{ ppm_app_user.uid }}"
|
||||||
|
|
||||||
|
- name: Show ppm output
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ppm_setupstart
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue