mirror of
https://github.com/KevinMidboe/schleppe-ha-project.git
synced 2026-02-12 10:39:07 +00:00
ansible plays for docker, haproxy & varnish
This commit is contained in:
3
ansible/roles/certbot/defaults/main.yml
Normal file
3
ansible/roles/certbot/defaults/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
certbot_packages:
|
||||
- certbot
|
||||
- python3-certbot-dns-cloudflare
|
||||
4
ansible/roles/certbot/handlers/main.yml
Normal file
4
ansible/roles/certbot/handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
- name: noop
|
||||
debug:
|
||||
msg: "Certbot role completed"
|
||||
8
ansible/roles/certbot/tasks/install.yml
Normal file
8
ansible/roles/certbot/tasks/install.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- apt:
|
||||
update_cache: true
|
||||
when: ansible_facts.os_family == "Debian"
|
||||
|
||||
- package:
|
||||
name: "{{ certbot_packages }}"
|
||||
state: present
|
||||
3
ansible/roles/certbot/tasks/main.yml
Normal file
3
ansible/roles/certbot/tasks/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
- import_tasks: install.yml
|
||||
- import_tasks: secrets.yml
|
||||
14
ansible/roles/certbot/tasks/secrets.yml
Normal file
14
ansible/roles/certbot/tasks/secrets.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- file:
|
||||
path: "{{ certbot_cloudflare_secrets_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0700"
|
||||
|
||||
- template:
|
||||
src: cloudflare.ini.j2
|
||||
dest: "{{ certbot_cloudflare_ini_path }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
1
ansible/roles/certbot/templates/cloudflare.ini.j2
Normal file
1
ansible/roles/certbot/templates/cloudflare.ini.j2
Normal file
@@ -0,0 +1 @@
|
||||
dns_cloudflare_api_token = {{ certbot_cloudflare_api_token }}
|
||||
Reference in New Issue
Block a user