Deprecating old stuff that isnt used anymore
This commit is contained in:
42
deprecated/playbooks/atlas/nginx-plain-conf/main.yml
Normal file
42
deprecated/playbooks/atlas/nginx-plain-conf/main.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
# This playbook just installs nginx so that it is ready to configure
|
||||
# we don't bother with extra user accounts like with Beta because we
|
||||
# are only concerned with using nginx to serve fully containerized
|
||||
# applications. Not static files
|
||||
---
|
||||
- hosts: alpha
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Install Certbot
|
||||
community.general.snap:
|
||||
name: certbot
|
||||
classic: yes
|
||||
|
||||
- name: Push Configs
|
||||
copy:
|
||||
src: "{{item}}"
|
||||
dest: "/etc/nginx/sites-available/{{item}}"
|
||||
loop:
|
||||
- search.project-athens.xyz
|
||||
- files.leftcoast.space
|
||||
|
||||
- name: Enable Sites in Nginx
|
||||
file:
|
||||
src: "/etc/nginx/sites-available/{{item}}"
|
||||
dest: "/etc/nginx/sites-enabled/{{item}}"
|
||||
state: link
|
||||
loop:
|
||||
- search.project-athens.xyz
|
||||
- files.leftcoast.space
|
||||
|
||||
- name: Restart Nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
|
||||
- name: Install Certificates for all sites on this host
|
||||
command: >
|
||||
certbot -n --nginx -m "{{CERT_EMAIL}}" --agree-tos
|
||||
--domains "{{item}}"
|
||||
loop:
|
||||
- search.project-athens.xyz
|
||||
- files.leftcoast.space
|
||||
Reference in New Issue
Block a user