Make awfullall deploy work on debian 11.

Big annoyance with nginx here, because all my past decisions are terrible.
This commit is contained in:
josiah 2024-08-24 11:07:03 -05:00
parent 4d045744ff
commit e3de8e7250
3 changed files with 7 additions and 23 deletions

View File

@ -37,31 +37,12 @@
- name: Init a new swarm with default parameters
docker_swarm:
state: present
state: present
- name: ensure the app folders exist
file: state=directory path={{ item }} owner=josiah group=josiah mode=0700
loop: [ '/home/josiah/apps/mojo/', '/home/josiah/apps/arke/', '/home/josiah/apps/znc/', '/home/josiah/apps/awful/' ]
# Update the app git repos
- name: update the mojo git repo
git:
repo: 'https://git.awful.club/hosted/mojojojo-bot.git'
dest: /home/josiah/apps/mojo/
version: master
- name: update the arke git repo
git:
repo: 'https://git.awful.club/hosted/arke.git'
dest: /home/josiah/apps/arke/
version: master
- name: update the znc git repo
git:
repo: 'https://git.awful.club/hosted/znc-docker.git'
dest: /home/josiah/apps/znc/
version: master
- name: copy over awful-All config files
template:
src: "{{ item.src }}"

View File

@ -49,9 +49,12 @@ services:
pubnet:
nginx:
image: nginx:1.17.10
image: nginx:1.18
volumes:
- /etc/nginx/:/etc/nginx/
- /etc/nginx/sites-available:/etc/nginx/sites-available
- /etc/nginx/sites-enabled:/etc/nginx/sites-enabled
- /etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- /etc/nginx/conf.d:/etc/nginx/conf.d
- /etc/letsencrypt/:/etc/letsencrypt/
- /home/josiah/apps/awful/awful.club.html:/var/www/awful.club/html/index.html
- nginx_logs:/log

View File

@ -1 +1 @@
sys_packages: [ 'curl', 'vim', 'git', 'emacs', 'build-essential', 'mosh', 'python', 'python3-pip' ]
sys_packages: [ 'curl', 'vim', 'git', 'emacs', 'build-essential', 'mosh', 'python3', 'python3-pip' ]