Add new hosts and fix some ansible semantics
Some checks failed
Ansible Deploy / deploy (Ansible/playbooks/debian.yml) (push) Successful in 1m40s
Ansible Deploy / deploy (Ansible/playbooks/proxmox.yml) (push) Successful in 3m11s
Ansible Lint / build (push) Failing after 1m12s

This commit is contained in:
Benjamin Hays 2024-11-28 16:40:45 -05:00
parent 96a7763933
commit 6b208a768a
4 changed files with 11 additions and 1 deletions

View File

@ -7,3 +7,6 @@ devops.benhays.cloud heartbeat_url="https://uptime.betterstack.com/api/v1/heartb
tailscale.benhays.cloud heartbeat_url='https://uptime.betterstack.com/api/v1/heartbeat/Sp7CXapJDwtjQmCMVdjeQsMy' # <--- All the rest are Ubuntu 22.04
bitwarden.benhays.cloud heartbeat_url='https://uptime.betterstack.com/api/v1/heartbeat/YUBUtgJjBDJKEqM1qUXroj1v' # <---
nextcloud.benhays.cloud heartbeat_url='https://uptime.betterstack.com/api/v1/heartbeat/oijvrZGFtc9Dev2AefP8iTfB' # <---
irc.benhays.cloud
dns01.benhays.cloud
dns02.benhays.cloud

View File

@ -16,6 +16,7 @@
ansible.builtin.import_tasks: ../roles/cloudflare-dns.yml
- name: Heartbeat Cronjob for Betterstack
ansible.builtin.import_tasks: ../roles/heartbeat.yml
when: heartbeat_url is defined
- name: OpenSSH Hardening
ansible.builtin.import_tasks: ../roles/openssh.yml
- name: Generic Debian Hardening

View File

@ -5,21 +5,25 @@
mode: "0700"
src: ../../Scripts/cloudflare-dns.sh
dest: /opt/cloudflare-dns.sh
changed_when: false
- name: Insert API Token
ansible.builtin.replace:
path: "/opt/cloudflare-dns.sh"
regexp: "^cloudflare_zone_api_token=''"
replace: "cloudflare_zone_api_token='{{ CF_API_TOKEN }}'"
changed_when: false
- name: Insert Zone ID
ansible.builtin.replace:
path: "/opt/cloudflare-dns.sh"
regexp: "^zoneid=''"
replace: "zoneid='{{ CF_ZONE_ID }}'"
- name: Insert Zone ID
changed_when: false
- name: Insert DNS Record
ansible.builtin.replace:
path: "/opt/cloudflare-dns.sh"
regexp: "^dns_record=''"
replace: "dns_record='{{ inventory_hostname }}'"
changed_when: false
- name: Add Cronjob for IPAM Script
ansible.builtin.cron:
name: "Cloudflare IPAM Script"

View File

@ -42,3 +42,5 @@
ansible.builtin.systemd:
name: ssh
state: restarted
changed_when: false