Skip to content
Snippets Groups Projects
Verified Commit 9f165ad9 authored by ynerant's avatar ynerant
Browse files

[constellation] Deploy crontab


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 984d3ecb
No related branches found
No related tags found
1 merge request!263[constellation] Constellation is coming
......@@ -20,7 +20,8 @@ glob_constellation:
user: 'constellation'
password: "{{ vault.constellation_django_db_password }}"
name: 'constellation'
front: True
front: true
crontab: true
applications:
- 'access'
- 'billing'
......
......@@ -69,6 +69,14 @@
version: "{{ constellation.version }}"
recursive: true
- name: Install pip module with editable flag (development)
when: constellation.version != "master"
pip:
name:
- "{{ project_path }}"
editable: true
state: latest
- name: Install and upgrade constellation (production)
when: constellation.version == "master"
pip:
......@@ -99,6 +107,15 @@
dest: "{{ project_path }}/settings_local.py"
state: link
- name: Deploy crontab
when: constellation.crontab
template:
src: "cron.d/constellation.j2"
dest: "/etc/cron.d/constellation"
owner: root
group: root
mode: 0644
- name: Compile messages
when: not constellation.front
django_manage:
......
{{ ansible_header }}
# m h dom mon dow user command
24 4 * * * root constellation check_consistency
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment