Skip to content

Commit

Permalink
✨ (ascii-facemaker): Added a new Ansible role for ascii-facemaker
Browse files Browse the repository at this point in the history
  • Loading branch information
theobori committed Jul 15, 2024
1 parent dd8ed20 commit 942f869
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@

- role: linkstack
tags: linkstack

Check failure on line 122 in main.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[trailing-spaces]

Trailing spaces
- role: ascii-facemaker
tags: ascii-facemaker

- role: vitalk.secure-ssh
tags: ssh
Expand Down
9 changes: 9 additions & 0 deletions roles/ascii-facemaker/files/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3.8"

services:
linkstack:
image: theobori/ascii-facemaker:1.0
container_name: ascii-facemaker
ports:
- "127.0.0.1:9999:80"
restart: unless-stopped
11 changes: 11 additions & 0 deletions roles/ascii-facemaker/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- name: Include service role
ansible.builtin.include_role:
name: "service"
vars:
service_name: "ascii-facemaker"
service_fqdn: "ascii-facemaker.{{ domain }}"
service_nginx_port: "9999"
service_certbot: true
service_nginx: true
service_docker_compose: true
service_systemd_service: true
16 changes: 16 additions & 0 deletions roles/ascii-facemaker/templates/nginx.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
server {
include listen-443;
server_name {{ server_name }};

include ssl_params;
ssl_certificate /etc/letsencrypt/live/{{ server_name }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ server_name }}/privkey.pem;

include header_params;

location / {
include proxy_params;

proxy_pass http://127.0.0.1:{{ server_port }}/;
}
}

0 comments on commit 942f869

Please sign in to comment.