|
@@ -2,15 +2,9 @@
|
|
|
- name: Dependencies installed
|
|
|
# We install xmlsec and cairocffi using pkg because python-Levenshtein is tricky to install on FreeBSD
|
|
|
community.general.pkgng:
|
|
|
- name: git,py37-pip,vim-console,tmux,fish,direnv,jpeg-turbo,tiff,webp,lcms2,freetype2,syncthing,yarn-node14,redis,cairo,pango,gmake,libxml2,libxslt,postgresql12-client,py37-xmlsec,py37-cairocffi,py37-sqlite3
|
|
|
+ name: git,py38-pip,fish,direnv,jpeg-turbo,tiff,webp,lcms2,freetype2,syncthing,yarn-node14,cairo,pango,gmake,libxml2,libxslt,postgresql12-client,py38-xmlsec,py38-cairocffi,py38-sqlite3,bash
|
|
|
state: latest
|
|
|
|
|
|
-- name: Redis enabled
|
|
|
- shell: sysrc redis_enable="YES"
|
|
|
-
|
|
|
-- name: Redis started
|
|
|
- service: name=redis state=started
|
|
|
-
|
|
|
- name: Root shell is fish
|
|
|
ansible.builtin.user: name=root shell=/usr/local/bin/fish
|
|
|
|
|
@@ -64,7 +58,7 @@
|
|
|
|
|
|
- name: Create python bin link for yarn
|
|
|
file:
|
|
|
- src: /usr/local/bin/python3.7
|
|
|
+ src: /usr/local/bin/python3.8
|
|
|
dest: /usr/bin/python
|
|
|
owner: root
|
|
|
state: link
|
|
@@ -127,31 +121,38 @@
|
|
|
executable: pip
|
|
|
tags:
|
|
|
- deploy
|
|
|
- notify: Redis restarted
|
|
|
|
|
|
- name: 15Five migrations up to date
|
|
|
- command: bash -lc "direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.7 /usr/local/src/fifteen5/manage.py migrate"
|
|
|
+ command: bash -lc "direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.8 /usr/local/src/fifteen5/manage.py migrate"
|
|
|
tags:
|
|
|
- deploy
|
|
|
|
|
|
- name: 15Five BE supervisor file installed
|
|
|
copy:
|
|
|
src: fifteen5-supervisor.conf
|
|
|
- dest: /usr/local/etc/supervisor/conf.d/
|
|
|
+ dest: /usr/local/etc/supervisor/conf.d/fifteen5.conf
|
|
|
owner: root
|
|
|
mode: 0644
|
|
|
notify: Supervisor restarted
|
|
|
|
|
|
- name: 15Five FE supervisor file installed
|
|
|
copy:
|
|
|
- src: fifteen5-fe-supervisor.conf
|
|
|
- dest: /usr/local/etc/supervisor/conf.d/
|
|
|
+ src: fifteen5-yarn-supervisor.conf
|
|
|
+ dest: /usr/local/etc/supervisor/conf.d/fifteen5-yarn.conf
|
|
|
+ owner: root
|
|
|
+ mode: 0644
|
|
|
+ notify: Supervisor restarted
|
|
|
+
|
|
|
+- name: 15Five celery supervisor file installed
|
|
|
+ copy:
|
|
|
+ src: celery-supervisor.conf
|
|
|
+ dest: /usr/local/etc/supervisor/conf.d/celery.conf
|
|
|
owner: root
|
|
|
mode: 0644
|
|
|
notify: Supervisor restarted
|
|
|
|
|
|
- name: 15Five frontend files generated and copied
|
|
|
- command: bash -lc "direnv exec /usr/local/src/fifteen5 /usr/local/bin/yarn && direnv exec /usr/local/src/fifteen5 /usr/local/bin/yarn build && direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.7 manage.py collectstatic --no-input"
|
|
|
+ command: bash -lc "direnv exec /usr/local/src/fifteen5 /usr/local/bin/yarn && direnv exec /usr/local/src/fifteen5 /usr/local/bin/yarn build && direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.8 manage.py collectstatic --no-input"
|
|
|
args:
|
|
|
chdir: "/usr/local/src/fifteen5"
|
|
|
tags:
|
|
@@ -159,7 +160,7 @@
|
|
|
- never
|
|
|
|
|
|
- name: 15Five reset database
|
|
|
- command: bash -lc "RESET_DB=True direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.7 /usr/local/src/fifteen5/manage.py run_local_scripts && direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.7 /usr/local/src/fifteen5/manage.py clearsessions"
|
|
|
+ command: bash -lc "RESET_DB=True direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.8 /usr/local/src/fifteen5/manage.py run_local_scripts && direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.8 /usr/local/src/fifteen5/manage.py clearsessions"
|
|
|
tags:
|
|
|
- db-refresh
|
|
|
- never
|