treewide: Really use isso_user everywhere, fix template ext

master
Felix 1 year ago
parent 0b08fcdf71
commit 8907f4b066

@ -2,6 +2,6 @@
- name: reload gunicorn
systemd:
name: gunicorn-isso
name: "gunicorn-{{isso_user}}"
state: restarted
daemon_reload: true

@ -3,7 +3,7 @@
- name: Check if isso user exists
getent:
database: passwd
key: isso
key: "{{isso_user}}"
fail_key: false
register: isso_user_already
ignore_errors: true
@ -13,9 +13,9 @@
- name: Create user for isso
user:
name: "isso"
name: "{{isso_user}}"
comment: "User for isso"
home: "/home/isso/"
home: "/home/{{isso_user}}/"
state: present
when: isso_user_already != true
ignore_errors: true

@ -15,8 +15,8 @@
- name: Install isso gunicorn service
template:
src: "gunicorn-isso.service"
dest: "/etc/systemd/system/gunicorn-isso.service"
src: "gunicorn-isso.service.j2"
dest: "/etc/systemd/system/gunicorn-{{isso_user}}.service"
owner: "root"
group: "root"
mode: 0644

@ -19,7 +19,7 @@
- name: Install python virtualenv with gunicorn package
become: true
become_user: isso
become_user: "{{isso_user}}"
become_method: sudo
pip:
name: "{{packages}}"
@ -50,7 +50,7 @@
- name: Install isso from tar.gz
become: true
become_user: isso
become_user: "{{isso_user}}"
become_method: sudo
pip:
name: "file:///{{isso_user_home}}/isso-{{isso_version}}.tar.gz"

Loading…
Cancel
Save