Okay, turns out we need to separate out roles

This makes a bit more sense now, I guess
This commit is contained in:
Salt 2020-09-11 11:56:46 -05:00
parent ab17391c0b
commit 42f8c8aa35
3 changed files with 16 additions and 6 deletions

View File

@ -62,12 +62,8 @@
gitweb_url: "www.9iron.club"
gitweb_webroot: "/var/www/www"
tags: [ web, webroot, 9i ]
- role: gitweb
vars:
gitweb_repo: "https://git.9iron.club/salt/desultd"
gitweb_url: "desu.ltd"
gitweb_webroot: "/var/www/desultd"
tags: [ web, webroot, desu ]
- hosts: web1.9iron.club
roles:
- role: redirect
vars:
redirect_from: "otwstudios.org"
@ -80,3 +76,11 @@
gitweb_url: "www.otwstudios.org"
gitweb_webroot: "/var/www/otwstudios.org"
tags: [ web, webroot, otw ]
- hosts: web1.9iron.club
roles:
- role: gitweb
vars:
gitweb_repo: "https://git.9iron.club/salt/desultd"
gitweb_url: "desu.ltd"
gitweb_webroot: "/var/www/desultd"
tags: [ web, webroot, desu ]

View File

@ -25,6 +25,9 @@
cmd: "a2ensite {{ gitweb_url }}.conf"
creates: "/etc/apache2/sites-enabled/{{ gitweb_url }}.conf"
notify: restart apache
- name: Debug site name
debug:
msg: "{{ gitweb_url }} at {{ gitweb_webroot }} from {{ gitweb_repo }}"
- name: Generate certificate
include_role:
name: https

View File

@ -3,6 +3,9 @@
---
- name: "Register certificate for {{ website_url }}"
block:
- name: Debug info
debug:
msg: "Installing cert for {{ website_url }}"
- name: Install SSL-required packages
apt:
name: python3-openssl