Verified Commit 83c5822e authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/security_tracker: Added the capability of reloading the uwsgi app when there is a new release

parent df9b827d
......@@ -27,6 +27,7 @@
git: repo= version="stable" dest="{{ security_tracker_dir }}"
become: true
become_user: security
register: release
- name: run initial setup
become: true
......@@ -58,5 +59,11 @@
- name: deploy security-tracker
template: src=security-tracker.ini.j2 dest=/etc/uwsgi/vassals/security-tracker.ini owner=security group=http mode=0644
- name: deploy new release
become: true
become_user: security
file: path=/etc/uwsgi/vassals/security-tracker.ini state=touch
when: release.changed
- name: start and enable security-tracker timer
service: name="security-tracker-update.timer" enabled=yes state=started
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment