1
0

add nuc playbook

This commit is contained in:
michael 2024-05-16 21:35:45 +12:00
parent 2d31a5524f
commit 627343b50f
6 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,4 @@
ansible_connection: local
ansible_user: ladmin
ansible_become_user: root
ansible_become_method: sudo

View File

@ -0,0 +1,11 @@
certbot_rfc2136_server: '10.208.240.1'
certbot_rfc2136_key_name: 'rndc-house'
certbot_rfc2136_key_algorithm: 'hmac-sha256'
certbot_webserver_type: 'nginx' # 'nginx' or 'apache'
certbot_dns_plugin: 'rfc2136'
certbot_email: "certbot.kodi00@balsillie.email"
certbot_acme_server: "acme-v02.api.letsencrypt.org"
certbot_domains:
- xmr.balsillie.house

View File

@ -23,6 +23,7 @@ all:
kube00.balsillie.house: kube00.balsillie.house:
lat5420.balsillie.house: lat5420.balsillie.house:
lat7490.balsillie.house: lat7490.balsillie.house:
nuc.balsillie.house:
servers: servers:
children: children:
hypervisors: hypervisors:
@ -53,6 +54,7 @@ all:
lat5420.balsillie.house: lat5420.balsillie.house:
sff.balsillie.house: sff.balsillie.house:
kodi00.balsillie.house: kodi00.balsillie.house:
nuc.balsillie.house:
windows: windows:
hosts: hosts:
lat7490.balsillie.house: lat7490.balsillie.house:
@ -66,6 +68,7 @@ all:
sff.balsillie.house: sff.balsillie.house:
mp00.balsillie.house: mp00.balsillie.house:
kodi00.balsillie.house: kodi00.balsillie.house:
nuc.balsillie.house:
kodi: kodi:
hosts: hosts:
kodi00.balsillie.house: kodi00.balsillie.house:

View File

@ -6,5 +6,5 @@
gather_facts: true gather_facts: true
become: true become: true
roles: roles:
- role: aur_repo_host # - role: aur_repo_host
- role: nginx - role: nginx

View File

@ -0,0 +1,9 @@
---
- name: Setup NUC
hosts:
- nuc.balsillie.house
gather_facts: true
become: true
roles:
- role: certbot

View File

@ -49,7 +49,7 @@
- "{{ item }}" - "{{ item }}"
creates: /etc/letsencrypt/live/{{ item }}/fullchain.pem creates: /etc/letsencrypt/live/{{ item }}/fullchain.pem
loop: "{{ certbot_domains }}" loop: "{{ certbot_domains }}"
notify: "{{ certbot_notify }}" notify: "{{ certbot_notify | default(omit) }}"
- name: Enable certbot renewal - name: Enable certbot renewal
ansible.builtin.service: ansible.builtin.service: