further ansible tasks
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
- hosts: autoreply_editor
|
||||
gather_facts: false
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: Get newest version of autoreply-editor
|
||||
git:
|
||||
@@ -10,3 +10,31 @@
|
||||
template:
|
||||
src: config.py.j2
|
||||
dest: autoreply-editor/config.py
|
||||
|
||||
- name: Install specified python requirements
|
||||
pip:
|
||||
requirements: requirements.txt
|
||||
chdir: autoreply-editor
|
||||
extra_args: --user
|
||||
|
||||
- name: Register domain for service
|
||||
command: "uberspace web domain add {{ domain }}"
|
||||
register: cmdrtrn
|
||||
failed_when: "'It is already configured for your Uberspace account' not in cmdrtrn.stderr"
|
||||
|
||||
- name: Create web backend for service
|
||||
command: "uberspace web backend set {{ domain }} --http --port {{ port }}"
|
||||
|
||||
- name: Deploy supervisord service
|
||||
template:
|
||||
src: autoreply-editor.ini.j2
|
||||
dest: etc/services.d/autoreply-editor.ini
|
||||
notify: reload supervisord
|
||||
|
||||
handlers:
|
||||
- name: reread supervisord
|
||||
command: supervisorctl reread
|
||||
listen: reload supervisord
|
||||
- name: update supervisord
|
||||
command: supervisorctl update
|
||||
listen: reload supervisord
|
||||
|
||||
Reference in New Issue
Block a user