Moved printing into its own separate project called frank. It also has its own toml and deployement system.
It also works on a raspberry pi
This commit is contained in:
@ -21,26 +21,11 @@
|
||||
state: present
|
||||
source: build
|
||||
|
||||
- name: Build barker worker image
|
||||
docker_image:
|
||||
name: barker-worker:latest
|
||||
build:
|
||||
path: /tmp/app/
|
||||
dockerfile: /tmp/app/worker.Dockerfile
|
||||
pull: yes
|
||||
state: present
|
||||
source: build
|
||||
|
||||
- name: Upload the .env file
|
||||
template:
|
||||
src: "files/chd.env"
|
||||
dest: "/var/lib/{{ host_directory }}/.env"
|
||||
|
||||
- name: Upload the worker .env file
|
||||
template:
|
||||
src: "files/chd-worker.env"
|
||||
dest: "/var/lib/{{ host_directory }}/worker.env"
|
||||
|
||||
- name: Create barker container
|
||||
docker_container:
|
||||
name: "{{ host_directory }}"
|
||||
@ -56,17 +41,6 @@
|
||||
volumes:
|
||||
- "/var/lib/{{ host_directory }}/frontend:/frontend"
|
||||
|
||||
- name: Create barker worker container
|
||||
docker_container:
|
||||
name: "{{ host_directory }}-worker"
|
||||
image: barker-worker:latest
|
||||
state: started
|
||||
restart_policy: "unless-stopped"
|
||||
env_file: "/var/lib/{{ host_directory }}/worker.env"
|
||||
links:
|
||||
- "redis:redis"
|
||||
|
||||
|
||||
- name: Check if Nginx conf file exists
|
||||
stat: path="/etc/nginx/sites-available/{{ http_conf }}"
|
||||
register: status
|
||||
|
||||
Reference in New Issue
Block a user