123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- ---
- - name: Dependencies installed
- # We install xmlsec and cairocffi using pkg because python-Levenshtein is tricky to install on FreeBSD
- community.general.pkgng:
- name: git-tiny,py311-pip,jpeg-turbo,tiff,webp,lcms2,freetype2,cairo,pango,gmake,libxml2,libxslt,py311-psycopg2,py311-xmlsec,py311-cairocffi,py311-sqlite3,bash
- state: latest
- - name: Bookwyrm source deployed
- git:
- repo: "https://github.com/bookwyrm-social/bookwyrm.git"
- dest: /usr/local/src/bookwyrm
- update: yes
- ignore_errors: true
- tags:
- - deploy
- - name: Requirements up to date
- pip:
- requirements: /usr/local/src/bookwyrm/requirements.txt
- executable: pip
- tags:
- - deploy
- - name: Bookwyrm env file installed
- template:
- src: bookwyrm.env.j2
- dest: /usr/local/src/bookwyrm/.env
- owner: root
- mode: 0644
- - name: Bookwyrm migrations up to date
- command: bash -lc "python3.11 manage.py migrate"
- args:
- chdir: "/usr/local/src/bookwyrm"
- tags:
- - deploy
- - name: Bookwyrm frontend files up to date
- command: bash -lc "python3.11 manage.py collectstatic --noinput"
- args:
- chdir: "/usr/local/src/bookwyrm"
- tags:
- - deploy
- - name: Bookwyrm uvicorn immortal file installed
- template:
- src: bookwyrm-web-immortal.yml.j2
- dest: /usr/local/etc/immortal/bookwyrm-web.yml
- owner: root
- mode: 0644
- notify: Immortal restarted
- - name: Bookwyrm celery immortal file installed
- template:
- src: bookwyrm-celery-immortal.yml.j2
- dest: /usr/local/etc/immortal/bookwyrm-celery.yml
- owner: root
- mode: 0644
- notify: Immortal restarted
|