feat(porkbun): add support for porkbun creds
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
27fe69cfa0
commit
45a41d7c99
3 changed files with 14 additions and 0 deletions
6
roles/porkbun/defaults/main.yml
Normal file
6
roles/porkbun/defaults/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# ‹apikey› provided by Porkbun
|
||||
porkbun_key: None
|
||||
|
||||
# ‹secretapikey› provided by Porkbun
|
||||
porkbun_secret: None
|
6
roles/porkbun/tasks/main.yml
Normal file
6
roles/porkbun/tasks/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Create the file with Porkbun secrets
|
||||
ansible.builtin.template:
|
||||
src: templates/porkbun.ini
|
||||
dest: /etc/porkbun.ini
|
||||
mode: 0600
|
2
roles/porkbun/templates/porkbun.ini
Normal file
2
roles/porkbun/templates/porkbun.ini
Normal file
|
@ -0,0 +1,2 @@
|
|||
dns_porkbun_key={{ porkbun_key }}
|
||||
dns_porkbun_secret={{ porkbun_secret }}
|
Loading…
Reference in a new issue