Compare commits

...

4 Commits

Author SHA1 Message Date
06bf19768a added hostname vars, fixed some hosts ipv6 stuff 2026-01-05 22:37:13 +01:00
1db6cff65e added trixie repositories 2025-10-16 15:46:03 +02:00
7390183038 generalized PBS repositories
single file with lsb release parameter now
2025-10-16 15:44:54 +02:00
cb4dbe4c3c renamed powerdns folder 2025-08-02 01:41:12 +02:00
16 changed files with 41 additions and 39 deletions

View File

@@ -11,10 +11,9 @@
when: ansible_facts["lsb"]["codename"] == "bullseye"
- import_tasks: tasks/debian-general/repositories-bookworm.yml
when: ansible_facts["lsb"]["codename"] == "bookworm"
- import_tasks: tasks/debian-general/repositories-trixie.yml
when: ansible_facts["lsb"]["codename"] == "trixie"
- import_tasks: tasks/debian-general/upgrade.yml
- import_tasks: tasks/debian-to-pbs/repositories-bullseye.yml
when: ansible_facts["lsb"]["codename"] == "bullseye"
- import_tasks: tasks/debian-to-pbs/repositories-bookworm.yml
when: ansible_facts["lsb"]["codename"] == "bookworm"
- import_tasks: tasks/debian-to-pbs/repositories.yml
- import_tasks: tasks/debian-general/upgrade.yml
- import_tasks: tasks/debian-to-pbs/pbs-server.yml

View File

@@ -11,5 +11,7 @@
when: ansible_facts.lsb.codename == "bullseye"
- import_tasks: tasks/debian-general/repositories-bookworm.yml
when: ansible_facts.lsb.codename == "bookworm"
- import_tasks: tasks/debian-general/repositories-trixie.yml
when: ansible_facts.lsb.codename == "trixie"
- import_tasks: tasks/debian-to-pve/repositories.yml
- import_tasks: tasks/debian-to-pve/pve-server.yml

View File

@@ -2,4 +2,4 @@
- hosts: all
become: true
tasks:
- import_tasks: tasks/powerdns-bullseye/powerdns-backend-mysql.yml
- import_tasks: tasks/powerdns/powerdns-backend-mysql.yml

View File

@@ -8,10 +8,10 @@
when: ansible_facts["lsb"]["codename"] == "bookworm"
- import_tasks: tasks/debian-general/upgrade.yml
- import_tasks: tasks/debian-general/gnupg2.yml
- import_tasks: tasks/powerdns-bullseye/gpg-key.yml
- import_tasks: tasks/powerdns-bullseye/repositories-authoritative-bullseye.yml
- import_tasks: tasks/powerdns/gpg-key.yml
- import_tasks: tasks/powerdns/repositories-authoritative-bullseye.yml
when: ansible_facts["lsb"]["codename"] == "bullseye"
- import_tasks: tasks/powerdns-bullseye/repositories-authoritative-bookworm.yml
- import_tasks: tasks/powerdns/repositories-authoritative-bookworm.yml
when: ansible_facts["lsb"]["codename"] == "bookworm"
- import_tasks: tasks/debian-general/upgrade.yml
- import_tasks: tasks/powerdns-bullseye/powerdns-authoritative.yml
- import_tasks: tasks/powerdns/powerdns-authoritative.yml

View File

@@ -5,4 +5,6 @@
content: |
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
{{ PUBLIC_IP }} {{ HOSTNAME }} {{ HOSTNAME_SHORT }}

View File

@@ -0,0 +1,8 @@
---
- name: (Trixie) Ensure the correct Debian repositories are in place
ansible.builtin.copy:
dest: /etc/apt/sources.list
content: |
deb http://deb.debian.org/debian trixie main contrib non-free-firmware
deb http://deb.debian.org/debian trixie-updates main contrib non-free-firmware
deb http://security.debian.org/debian-security trixie-security main contrib non-free-firmware

View File

@@ -1,15 +0,0 @@
---
- name: Ensure the PBS Enterprise respository is disabled
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pbs-enterprise.list
content: |
#deb https://enterprise.proxmox.com/debian/pbs bookworm pbs-enterprise
- name: Ensure the correct Proxmox repositories are in place
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pbs-no-subscription.list
content: |
deb http://download.proxmox.com/debian/pbs bookworm pbs-no-subscription
- name: Ensure the Proxmox signing GPG key is present
ansible.builtin.get_url:
dest: /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
url: https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg

View File

@@ -1,15 +0,0 @@
---
- name: Ensure the PBS Enterprise respository is disabled
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pbs-enterprise.list
content: |
#deb https://enterprise.proxmox.com/debian/pbs bullseye pbs-enterprise
- name: Ensure the correct Proxmox repositories are in place
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pbs-no-subscription.list
content: |
deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
- name: Ensure the Proxmox signing GPG key is present
ansible.builtin.get_url:
dest: /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
url: https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg

View File

@@ -0,0 +1,15 @@
---
- name: Ensure the PBS Enterprise repository is disabled
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pbs-enterprise.list
content: |
#deb https://enterprise.proxmox.com/debian/pbs {{ ansible_facts.lsb.codename }} pbs-enterprise
- name: Ensure the correct Proxmox repositories are in place
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pbs-no-subscription.list
content: |
deb http://download.proxmox.com/debian/pbs {{ ansible_facts.lsb.codename }} pbs-no-subscription
- name: Ensure the Proxmox signing GPG key is present
ansible.builtin.get_url:
dest: /etc/apt/trusted.gpg.d/proxmox-release-{{ ansible_facts.lsb.codename }}.gpg
url: https://enterprise.proxmox.com/debian/proxmox-release-{{ ansible_facts.lsb.codename }}.gpg

View File

@@ -6,4 +6,6 @@
when: ansible_facts["lsb"]["codename"] == "bullseye"
- import_tasks: tasks/debian-general/repositories-bookworm.yml
when: ansible_facts["lsb"]["codename"] == "bookworm"
- import_tasks: tasks/debian-general/repositories-trixie.yml
when: ansible_facts.lsb.codename == "trixie"
- import_tasks: tasks/debian-general/upgrade.yml

4
vars/hostname.yml Normal file
View File

@@ -0,0 +1,4 @@
---
HOSTNAME: z2m.home.infra.bjphoster.cloud
HOSTNAME_SHORt: z2m
PUBLIC_IP: 10.31.0.100