Skip to content
main.yml 580 B
Newer Older
jerome's avatar
jerome committed
---

jerome's avatar
jerome committed
- name: "set real home path when user is in jail"
jerome's avatar
jerome committed
  set_fact:
jerome's avatar
jerome committed
    app_user_home: "{{ base_chroot_jail }}/{{ app_user }}/home/{{ app_user }}"
  when: app_user_chrooted == "yes"
jerome's avatar
jerome committed

- name: "set user home var "
  set_fact:
    app_user_home: "/home/{{ app_user }}"
jerome's avatar
jerome committed
  when: app_user_chrooted != "yes"
jerome's avatar
jerome committed

- name: "set instance root"
  set_fact:
    app_instance_root: "{{ app_user_home }}/{{ app_instance_id }}"
jerome's avatar
jerome committed
  when: app_instance_root is not defined
jerome's avatar
jerome committed

- import_tasks: install.yml
  when: app_run in ['install', 'reinstall']

- import_tasks: upgrade.yml
  when: app_run == 'upgrade'