computer-playbook/roles/native-homepage/tasks/main.yml

13 lines
447 B
YAML
Raw Normal View History

2020-12-24 14:27:31 +01:00
- name: configure {{domain}}.conf
2021-01-03 00:29:24 +01:00
template: src=homepage.nginx.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
2020-12-24 14:27:31 +01:00
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