*formsubmit* is a simple, customizable HTML for submission handler. I designed it for Tabitha to use to collect information from forms on her websites. Notably, we will use it for the RSVP page on our wedding invitation site.
40 lines
916 B
YAML
40 lines
916 B
YAML
- name: ensure latest formsubmit is installed # noqa package-latest
|
|
environment:
|
|
PIP_FIND_LINKS: http://files.pyrocufflink.blue/wheels/formsubmit
|
|
PIP_TRUSTED_HOST: files.pyrocufflink.blue
|
|
pip:
|
|
name: formsubmit
|
|
virtualenv: /usr/local/formsubmit
|
|
virtualenv_command: python3.9 -m venv
|
|
state: latest
|
|
notify:
|
|
- restart formsubmit
|
|
tags:
|
|
- install
|
|
|
|
- name: ensure formsubmit deployment dependencies are installed
|
|
pip:
|
|
name:
|
|
- uvicorn
|
|
virtualenv: /usr/local/formsubmit
|
|
state: present
|
|
tags:
|
|
- install
|
|
|
|
- name: ensure formsubmit systemd unit is installed
|
|
copy:
|
|
src: formsubmit.service
|
|
dest: /etc/systemd/system/formsubmit.service
|
|
mode: u=rw,go=r
|
|
notify:
|
|
- reload systemd
|
|
- restart formsubmit
|
|
tags:
|
|
- systemd
|
|
|
|
- name: ensure formsubmit configuration directory exists
|
|
file:
|
|
path: /etc/formsubmit
|
|
mode: u=rwx,go=rx
|
|
state: directory
|