mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-05 01:41:34 +02:00
Merged client playbook and server playbook
This commit is contained in:
12
roles/server_native-homepage/tasks/main.yml
Normal file
12
roles/server_native-homepage/tasks/main.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- name: configure {{domain}}.conf
|
||||
template: src=homepage.nginx.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||
notify: restart nginx
|
||||
|
||||
- name: recieve {{domain}} certificate
|
||||
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
|
||||
|
||||
- name: homepage repo git
|
||||
git:
|
||||
repo: "{{homepage_repository_address}}"
|
||||
dest: "/usr/share/nginx/homepage"
|
||||
update: yes
|
Reference in New Issue
Block a user