Compare commits
2 commits
77843e62f5
...
7400d72004
| Author | SHA1 | Date | |
|---|---|---|---|
| 7400d72004 | |||
|
73e77bde70 |
20 changed files with 63 additions and 34 deletions
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
# work in our environmnet.
|
# work in our environmnet.
|
||||||
# Rather manually setup python (pip) before instead.
|
# Rather manually setup python (pip) before instead.
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: https://github.com/ansible/ansible-lint@v26.3.0
|
uses: https://github.com/ansible/ansible-lint@v26.4.0
|
||||||
with:
|
with:
|
||||||
setup_python: "false"
|
setup_python: "false"
|
||||||
requirements_file: "requirements.yml"
|
requirements_file: "requirements.yml"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# renovate: datasource=docker depName=git.hamburg.ccc.de/ccchh/oci-images/nextcloud
|
# renovate: datasource=docker depName=git.hamburg.ccc.de/ccchh/oci-images/nextcloud
|
||||||
nextcloud__version: 32
|
nextcloud__version: 32
|
||||||
# renovate: datasource=docker depName=docker.io/library/postgres
|
# renovate: datasource=docker depName=docker.io/library/postgres
|
||||||
nextcloud__postgres_version: 15.17
|
nextcloud__postgres_version: 15.18
|
||||||
nextcloud__fqdn: cloud.hamburg.ccc.de
|
nextcloud__fqdn: cloud.hamburg.ccc.de
|
||||||
nextcloud__data_dir: /data/nextcloud
|
nextcloud__data_dir: /data/nextcloud
|
||||||
nextcloud__extra_configuration: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/cloud/nextcloud/extra_configuration.config.php.j2') }}"
|
nextcloud__extra_configuration: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/cloud/nextcloud/extra_configuration.config.php.j2') }}"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# renovate: datasource=github-releases depName=netbox packageName=netbox-community/netbox
|
# renovate: datasource=github-releases depName=netbox packageName=netbox-community/netbox
|
||||||
netbox__version: "v4.5.5"
|
netbox__version: "v4.6.0"
|
||||||
netbox__config: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/netbox/netbox/configuration.py.j2') }}"
|
netbox__config: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/netbox/netbox/configuration.py.j2') }}"
|
||||||
netbox__custom_pipeline_oidc_group_and_role_mapping: true
|
netbox__custom_pipeline_oidc_group_and_role_mapping: true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,69 +3,98 @@
|
||||||
hosts: base_config_hosts
|
hosts: base_config_hosts
|
||||||
roles:
|
roles:
|
||||||
- base_config
|
- base_config
|
||||||
|
tags:
|
||||||
|
- base_config
|
||||||
|
|
||||||
- name: Ensure systemd-networkd config deployment on systemd_networkd_hosts
|
- name: Ensure systemd-networkd config deployment on systemd_networkd_hosts
|
||||||
hosts: systemd_networkd_hosts
|
hosts: systemd_networkd_hosts
|
||||||
roles:
|
roles:
|
||||||
- systemd_networkd
|
- systemd_networkd
|
||||||
|
tags:
|
||||||
|
- systemd_networkd
|
||||||
|
|
||||||
- name: Ensure nftables deployment on nftables_hosts
|
- name: Ensure nftables deployment on nftables_hosts
|
||||||
hosts: nftables_hosts
|
hosts: nftables_hosts
|
||||||
roles:
|
roles:
|
||||||
- nftables
|
- nftables
|
||||||
|
tags:
|
||||||
|
- nftables
|
||||||
|
|
||||||
- name: Ensure deployment of infrastructure authorized keys
|
- name: Ensure deployment of infrastructure authorized keys
|
||||||
hosts: infrastructure_authorized_keys_hosts
|
hosts: infrastructure_authorized_keys_hosts
|
||||||
roles:
|
roles:
|
||||||
- infrastructure_authorized_keys
|
- infrastructure_authorized_keys
|
||||||
|
tags:
|
||||||
|
- infrastructure_authorized_keys
|
||||||
|
|
||||||
- name: Ensure Nextcloud config
|
- name: Ensure Nextcloud config
|
||||||
hosts: nextcloud_hosts
|
hosts: nextcloud_hosts
|
||||||
roles:
|
roles:
|
||||||
- nextcloud
|
- nextcloud
|
||||||
|
tags:
|
||||||
|
- nextcloud
|
||||||
|
|
||||||
- name: Ensure ola deployment on ola_hosts
|
- name: Ensure ola deployment on ola_hosts
|
||||||
hosts: ola_hosts
|
hosts: ola_hosts
|
||||||
roles:
|
roles:
|
||||||
- ola
|
- ola
|
||||||
|
tags:
|
||||||
|
- ola
|
||||||
|
|
||||||
- name: Ensure foobazdmx deployment on foobazdmx_hosts
|
- name: Ensure foobazdmx deployment on foobazdmx_hosts
|
||||||
hosts: foobazdmx_hosts
|
hosts: foobazdmx_hosts
|
||||||
roles:
|
roles:
|
||||||
- foobazdmx
|
- foobazdmx
|
||||||
|
tags:
|
||||||
|
- foobazdmx
|
||||||
|
|
||||||
- name: Ensure Dokuwiki config
|
- name: Ensure Dokuwiki config
|
||||||
hosts: wiki_hosts
|
hosts: wiki_hosts
|
||||||
roles:
|
roles:
|
||||||
- dokuwiki
|
- dokuwiki
|
||||||
|
tags:
|
||||||
|
- dokuwiki
|
||||||
|
|
||||||
- name: Ensure NetBox deployment on netbox_hosts
|
- name: Ensure NetBox deployment on netbox_hosts
|
||||||
hosts: netbox_hosts
|
hosts: netbox_hosts
|
||||||
roles:
|
roles:
|
||||||
- netbox
|
- netbox
|
||||||
|
tags:
|
||||||
|
- netbox
|
||||||
|
|
||||||
- name: Ensure NGINX deployment on nginx_hosts, which are also public_reverse_proxy_hosts, before certbot role runs
|
- name: Ensure NGINX deployment on nginx_hosts, which are also public_reverse_proxy_hosts, before certbot role runs
|
||||||
hosts: nginx_hosts:&public_reverse_proxy_hosts
|
hosts: nginx_hosts:&public_reverse_proxy_hosts
|
||||||
roles:
|
roles:
|
||||||
- nginx
|
- nginx
|
||||||
|
tags:
|
||||||
|
- nginx
|
||||||
|
- public_reverse_proxy
|
||||||
|
|
||||||
- name: Ensure certbot and certificate deployment on certbot_hosts
|
- name: Ensure certbot and certificate deployment on certbot_hosts
|
||||||
hosts: certbot_hosts
|
hosts: certbot_hosts
|
||||||
roles:
|
roles:
|
||||||
- certbot
|
- certbot
|
||||||
|
tags:
|
||||||
|
- certbot
|
||||||
|
|
||||||
- name: Ensure OnlyOffice custom fonts
|
- name: Ensure OnlyOffice custom fonts
|
||||||
ansible.builtin.import_playbook: onlyoffice_fonts.yaml
|
ansible.builtin.import_playbook: onlyoffice_fonts.yaml
|
||||||
|
tags:
|
||||||
|
- onlyoffice_fonts
|
||||||
|
|
||||||
- name: Ensure Docker Compose deployment on docker_compose_hosts
|
- name: Ensure Docker Compose deployment on docker_compose_hosts
|
||||||
hosts: docker_compose_hosts
|
hosts: docker_compose_hosts
|
||||||
roles:
|
roles:
|
||||||
- docker_compose
|
- docker_compose
|
||||||
|
tags:
|
||||||
|
- docker_compose
|
||||||
|
|
||||||
- name: Ensure NGINX deployment on nginx_hosts
|
- name: Ensure NGINX deployment on nginx_hosts
|
||||||
hosts: nginx_hosts:!public_reverse_proxy_hosts
|
hosts: nginx_hosts:!public_reverse_proxy_hosts
|
||||||
roles:
|
roles:
|
||||||
- nginx
|
- nginx
|
||||||
|
tags:
|
||||||
|
- nginx
|
||||||
|
|
||||||
- name: Configure unattended upgrades for all non-hypervisors
|
- name: Configure unattended upgrades for all non-hypervisors
|
||||||
hosts: all:!hypervisors
|
hosts: all:!hypervisors
|
||||||
|
|
@ -77,32 +106,46 @@
|
||||||
- "o=${distro_id},n=${distro_codename}"
|
- "o=${distro_id},n=${distro_codename}"
|
||||||
- "o=Docker,n=${distro_codename}"
|
- "o=Docker,n=${distro_codename}"
|
||||||
- "o=nginx,n=${distro_codename}"
|
- "o=nginx,n=${distro_codename}"
|
||||||
|
tags:
|
||||||
|
- unattended_upgrades
|
||||||
|
|
||||||
- name: Ensure Alloy is installed and Setup on alloy_hosts
|
- name: Ensure Alloy is installed and Setup on alloy_hosts
|
||||||
hosts: alloy_hosts
|
hosts: alloy_hosts
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- alloy
|
- alloy
|
||||||
|
tags:
|
||||||
|
- alloy
|
||||||
|
|
||||||
- name: Ensure ansible_pull deployment on ansible_pull_hosts
|
- name: Ensure ansible_pull deployment on ansible_pull_hosts
|
||||||
hosts: ansible_pull_hosts
|
hosts: ansible_pull_hosts
|
||||||
roles:
|
roles:
|
||||||
- ansible_pull
|
- ansible_pull
|
||||||
|
tags:
|
||||||
|
- ansible_pull
|
||||||
|
|
||||||
- name: Ensure msmtp is setup on msmtp_hosts
|
- name: Ensure msmtp is setup on msmtp_hosts
|
||||||
hosts: msmtp_hosts
|
hosts: msmtp_hosts
|
||||||
roles:
|
roles:
|
||||||
- msmtp
|
- msmtp
|
||||||
|
tags:
|
||||||
|
- msmtp
|
||||||
|
|
||||||
- name: Ensure Renovate is setup on renovate_hosts
|
- name: Ensure Renovate is setup on renovate_hosts
|
||||||
hosts: renovate_hosts
|
hosts: renovate_hosts
|
||||||
roles:
|
roles:
|
||||||
- renovate
|
- renovate
|
||||||
|
tags:
|
||||||
|
- renovate
|
||||||
|
|
||||||
- name: Run ensure_eh22_styleguide_dir Playbook
|
- name: Run ensure_eh22_styleguide_dir Playbook
|
||||||
ansible.builtin.import_playbook: ensure_eh22_styleguide_dir.yaml
|
ansible.builtin.import_playbook: ensure_eh22_styleguide_dir.yaml
|
||||||
|
tags:
|
||||||
|
- eh22_styleguide_dir
|
||||||
|
|
||||||
- name: Setup authoritative dns servers
|
- name: Setup authoritative dns servers
|
||||||
hosts: auth-dns
|
hosts: auth-dns
|
||||||
roles:
|
roles:
|
||||||
- knot
|
- knot
|
||||||
|
tags:
|
||||||
|
- knot
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
- name: Ensure NGINX repo setup and nginx install on relevant hosts
|
- name: Ensure NGINX repo setup and nginx install on relevant hosts
|
||||||
hosts: nginx_hosts:nextcloud_hosts
|
hosts: nginx_hosts:nextcloud_hosts
|
||||||
|
tags:
|
||||||
|
- nextcloud_nginx
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure NGINX repo is setup
|
- name: Ensure NGINX repo is setup
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
|
@ -13,6 +15,8 @@
|
||||||
|
|
||||||
- name: Ensure Docker repo setup and package install on relevant hosts
|
- name: Ensure Docker repo setup and package install on relevant hosts
|
||||||
hosts: docker_compose_hosts:nextcloud_hosts
|
hosts: docker_compose_hosts:nextcloud_hosts
|
||||||
|
tags:
|
||||||
|
- nextcloud_docker
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure Docker repo is setup
|
- name: Ensure Docker repo is setup
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
|
@ -28,6 +32,8 @@
|
||||||
hosts: all:!hypervisors
|
hosts: all:!hypervisors
|
||||||
roles:
|
roles:
|
||||||
- apt_update_and_upgrade
|
- apt_update_and_upgrade
|
||||||
|
tags:
|
||||||
|
- apt_update_and_upgrade
|
||||||
|
|
||||||
- name: Run deploy Playbook
|
- name: Run deploy Playbook
|
||||||
ansible.builtin.import_playbook: deploy.yaml
|
ansible.builtin.import_playbook: deploy.yaml
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
services:
|
services:
|
||||||
oauth2-proxy:
|
oauth2-proxy:
|
||||||
container_name: oauth2-proxy
|
container_name: oauth2-proxy
|
||||||
image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.1
|
image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.2
|
||||||
command: --config /oauth2-proxy.cfg
|
command: --config /oauth2-proxy.cfg
|
||||||
hostname: oauth2-proxy
|
hostname: oauth2-proxy
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
services:
|
services:
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: docker.io/prom/prometheus:v3.10.0
|
image: docker.io/prom/prometheus:v3.11.3
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
command:
|
command:
|
||||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
|
|
@ -19,7 +19,7 @@ services:
|
||||||
- prom_data:/prometheus
|
- prom_data:/prometheus
|
||||||
|
|
||||||
alertmanager:
|
alertmanager:
|
||||||
image: docker.io/prom/alertmanager:v0.31.1
|
image: docker.io/prom/alertmanager:v0.32.1
|
||||||
container_name: alertmanager
|
container_name: alertmanager
|
||||||
command:
|
command:
|
||||||
- '--config.file=/etc/alertmanager/alertmanager.yaml'
|
- '--config.file=/etc/alertmanager/alertmanager.yaml'
|
||||||
|
|
@ -46,7 +46,7 @@ services:
|
||||||
- graf_data:/var/lib/grafana
|
- graf_data:/var/lib/grafana
|
||||||
|
|
||||||
pve-exporter:
|
pve-exporter:
|
||||||
image: docker.io/prompve/prometheus-pve-exporter:3.8.2
|
image: docker.io/prompve/prometheus-pve-exporter:3.9.0
|
||||||
container_name: pve-exporter
|
container_name: pve-exporter
|
||||||
ports:
|
ports:
|
||||||
- 9221:9221
|
- 9221:9221
|
||||||
|
|
@ -59,7 +59,7 @@ services:
|
||||||
- /dev/null:/etc/prometheus/pve.yml
|
- /dev/null:/etc/prometheus/pve.yml
|
||||||
|
|
||||||
loki:
|
loki:
|
||||||
image: docker.io/grafana/loki:3.7.1
|
image: docker.io/grafana/loki:3.7.2
|
||||||
container_name: loki
|
container_name: loki
|
||||||
ports:
|
ports:
|
||||||
- 13100:3100
|
- 13100:3100
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
services:
|
services:
|
||||||
keycloak:
|
keycloak:
|
||||||
image: git.hamburg.ccc.de/ccchh/oci-images/keycloak:26.5.7
|
image: git.hamburg.ccc.de/ccchh/oci-images/keycloak:26.6.0
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: start --optimized
|
command: start --optimized
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
ntfy:
|
ntfy:
|
||||||
image: docker.io/binwiederhier/ntfy:v2.20.1
|
image: docker.io/binwiederhier/ntfy:v2.23.0
|
||||||
container_name: ntfy
|
container_name: ntfy
|
||||||
command:
|
command:
|
||||||
- serve
|
- serve
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ services:
|
||||||
- pretalx_net
|
- pretalx_net
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: docker.io/library/redis:8.6.2
|
image: docker.io/library/redis:8.6.3
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- redis:/data
|
- redis:/data
|
||||||
|
|
@ -23,7 +23,7 @@ services:
|
||||||
- pretalx_net
|
- pretalx_net
|
||||||
|
|
||||||
static:
|
static:
|
||||||
image: docker.io/library/nginx:1.29.7
|
image: docker.io/library/nginx:1.31.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- public:/usr/share/nginx/html
|
- public:/usr/share/nginx/html
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: docker.io/library/redis:8.6.2
|
image: docker.io/library/redis:8.6.3
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
image: docker.io/library/postgres:18.3
|
image: docker.io/library/postgres:18.4
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./database:/var/lib/postgresql
|
- ./database:/var/lib/postgresql
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: "reload systemd-resolved"
|
- name: "reload systemd-resolved"
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "systemd-resolved.service"
|
name: "systemd-resolved.service"
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: Ensure /etc/resolv.conf is a plain file
|
- name: Ensure /etc/resolv.conf is a plain file
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "/etc/resolv.conf"
|
path: "/etc/resolv.conf"
|
||||||
state: file
|
state: file
|
||||||
|
|
||||||
- name: Write nameserver config directly into /etc/resolv.conf
|
- name: Write nameserver config directly into /etc/resolv.conf
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "resolv.conf.j2"
|
src: "resolv.conf.j2"
|
||||||
|
|
@ -17,7 +15,6 @@
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
|
||||||
- name: Disable systemd-resolved
|
- name: Disable systemd-resolved
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "systemd-resolved.service"
|
name: "systemd-resolved.service"
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: Ensure systemd-resolved is installed
|
- name: Ensure systemd-resolved is installed
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
become: true
|
become: true
|
||||||
when: ansible_facts["distribution"] == "Debian"
|
when: ansible_facts["distribution"] == "Debian"
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: [ "systemd-resolved" ]
|
name: [ "systemd-resolved" ]
|
||||||
|
|
||||||
- name: Deploy systemd-resolved config
|
- name: Deploy systemd-resolved config
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
become: true
|
become: true
|
||||||
notify: "reload systemd-resolved"
|
notify: "reload systemd-resolved"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
@ -18,7 +16,6 @@
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
|
||||||
- name: Make /etc/resolv.conf points to systemd-resolved
|
- name: Make /etc/resolv.conf points to systemd-resolved
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
become: true
|
become: true
|
||||||
when: deploy_systemd_resolved_config__mode != "extern"
|
when: deploy_systemd_resolved_config__mode != "extern"
|
||||||
ansible.builtin.file: # noqa: jinja
|
ansible.builtin.file: # noqa: jinja
|
||||||
|
|
@ -35,7 +32,6 @@
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
- name: Ensure systemd-resolved is running and enabled
|
- name: Ensure systemd-resolved is running and enabled
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: systemd-resolved.service
|
name: systemd-resolved.service
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: Include enable.yaml
|
- name: Include enable.yaml
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
ansible.builtin.include_tasks: enable.yaml
|
ansible.builtin.include_tasks: enable.yaml
|
||||||
when: deploy_systemd_resolved_config__enable
|
when: deploy_systemd_resolved_config__enable
|
||||||
|
|
||||||
- name: Include disable.yaml
|
- name: Include disable.yaml
|
||||||
tags: [ "deploy_systemd_resolved_config" ]
|
|
||||||
ansible.builtin.include_tasks: disable.yaml
|
ansible.builtin.include_tasks: disable.yaml
|
||||||
when: not deploy_systemd_resolved_config__enable
|
when: not deploy_systemd_resolved_config__enable
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,16 @@
|
||||||
---
|
---
|
||||||
- name: reload knot
|
- name: reload knot
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: knot.service
|
name: knot.service
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
- name: netplan apply
|
- name: netplan apply
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
changed_when: true
|
changed_when: true
|
||||||
ansible.builtin.command: "netplan apply"
|
ansible.builtin.command: "netplan apply"
|
||||||
|
|
||||||
- name: restart knot-exporter
|
- name: restart knot-exporter
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: knot-exporter.service
|
name: knot-exporter.service
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: Install knot
|
- name: Install knot
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: Ensure required directories exist
|
- name: Ensure required directories exist
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
loop: [ "/etc/knot", "/etc/knot/zones" ]
|
loop: [ "/etc/knot", "/etc/knot/zones" ]
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
@ -11,7 +10,6 @@
|
||||||
mode: u=rwx,g=rx,o=
|
mode: u=rwx,g=rx,o=
|
||||||
|
|
||||||
- name: Deploy knot configuration file
|
- name: Deploy knot configuration file
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
notify: reload knot
|
notify: reload knot
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
@ -22,7 +20,6 @@
|
||||||
mode: u=rw,g=r,o=
|
mode: u=rw,g=r,o=
|
||||||
|
|
||||||
- name: Deploy configured zones
|
- name: Deploy configured zones
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
notify: reload knot
|
notify: reload knot
|
||||||
loop: "{{ knot__zones }}"
|
loop: "{{ knot__zones }}"
|
||||||
|
|
@ -42,7 +39,6 @@
|
||||||
# this results in outgoing zone transfers failing because knot will prefer to use the dynamic address over the statically configured one.
|
# this results in outgoing zone transfers failing because knot will prefer to use the dynamic address over the statically configured one.
|
||||||
# so because we are configuring a DNS Nameserver where known IP-Addresses are actually important for ACL reasons, SLAAC is disabled
|
# so because we are configuring a DNS Nameserver where known IP-Addresses are actually important for ACL reasons, SLAAC is disabled
|
||||||
- name: Disable IPv6 SLAAC
|
- name: Disable IPv6 SLAAC
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
notify: netplan apply
|
notify: netplan apply
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
- name: Deploy knot-exporter systemd unit
|
- name: Deploy knot-exporter systemd unit
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
register: knot_deploy_service_file
|
register: knot_deploy_service_file
|
||||||
notify: restart knot-exporter
|
notify: restart knot-exporter
|
||||||
|
|
@ -11,7 +10,6 @@
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
|
||||||
- name: Ensure knot-exporter is running and enabled
|
- name: Ensure knot-exporter is running and enabled
|
||||||
tags: [ auth-dns ]
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: knot-exporter.service
|
name: knot-exporter.service
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue