Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kism committed Sep 19, 2024
1 parent e43dbe4 commit 4146855
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions collections/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ collections:
- name: community.docker
source: https://galaxy.ansible.com

- name: ansibleguy.opnsense
source: https://galaxy.ansible.com

- name: kewlfft.aur
source: https://galaxy.ansible.com
1 change: 1 addition & 0 deletions inventory/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ proxmox_ct_cores: 1
proxmox_ct_unprivileged: true
github_username: kism
ssh_keys_url: https://github.com/{{ github_username }}.keys
opnsense_firewall: "opnsense.{{ homelab_domain_internal }}"
homelab_domain_external: kierangee.au
homelab_domain_internal: kg.lan
homelab_my_username: kism
Expand Down
1 change: 1 addition & 0 deletions inventory/host_vars/yoho.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
target_host_ip: 10.42.0.3
proxmox_target_node: pvewill
proxmox_guest_mac_address: BC:24:11:F3:FC:C2
proxmox_ct_disk: "local-lvm:20"
Expand Down
17 changes: 17 additions & 0 deletions roles/create_opnsense_entries/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# - name: Ensure that there is a dhcp entry for the host
# ansibleguy.opnsense.unbound_host:
# hostname: '{{ inventory_hostname | lower }}'
# domain: "{{ homelab_domain_internal }}"
# value: '{{ target_host_ip }}'
# description: '{{ ansible_host_description }}'

- name: Ensure that there is a dns entry for the host
ansibleguy.opnsense.unbound_host:
firewall: "{{ opnsense_firewall }}"
api_key: "{{ secret_opnsense_api_key }}"
api_secret: "{{ secret_opnsense_api_secret }}"
hostname: "{{ inventory_hostname | lower }}"
domain: "{{ homelab_domain_internal }}"
value: "{{ target_host_ip }}"
description: "{{ ansible_host_description }}"

0 comments on commit 4146855

Please sign in to comment.