ansible: drop dead caddy_ansible dep + commented-out ns/netbox/tailscale_home plays
caddy_ansible.caddy_ansible was only referenced by the (commented) netbox play, so removing the disabled play also makes the role unused. ns play was already superseded by the BIND9 play. Tailscale-on-home-hosts was never re-enabled post-Talos-migration — drop the stub; restore from git history if needed.
This commit is contained in:
parent
0970e29364
commit
4a84b5b277
2 changed files with 0 additions and 84 deletions
|
|
@ -33,89 +33,6 @@
|
|||
roles:
|
||||
- resolvers
|
||||
|
||||
# NS play disabled - replaced by BIND9 play below
|
||||
#- name: Apply ns config
|
||||
# hosts: ns
|
||||
# gather_facts: true
|
||||
# become: true
|
||||
# roles:
|
||||
# - role: ns
|
||||
|
||||
# NetBox plays disabled - no hosts in netbox group
|
||||
#- name: Apply netbox config
|
||||
# hosts: netbox
|
||||
# gather_facts: true
|
||||
# become: true
|
||||
# roles:
|
||||
# - role: caddy_ansible.caddy_ansible
|
||||
# caddy_systemd_network_dependency: true
|
||||
# caddy_setcap: true
|
||||
# caddy_systemd_capabilities_enabled: true
|
||||
# caddy_systemd_capabilities: "CAP_NET_BIND_SERVICE"
|
||||
# caddy_config: |
|
||||
# {{ netbox.domain }} {
|
||||
# bind {{ netbox.bind_address }}
|
||||
# log {
|
||||
# level error
|
||||
# }
|
||||
# route /static* {
|
||||
# uri strip_prefix /static
|
||||
# root * /opt/netbox/netbox/static
|
||||
# file_server
|
||||
# }
|
||||
# @notStatic not path /static*
|
||||
# encode gzip zstd
|
||||
# reverse_proxy @notStatic http://localhost:{{ netbox.port }} {
|
||||
# header_up Host {http.request.host}
|
||||
# header_up X-Real-IP {http.request.remote.host}
|
||||
# header_up X-Forwarded-For {http.request.remote.host}
|
||||
# header_up X-Forwarded-Port {http.request.port}
|
||||
# header_up X-Forwarded-Proto {http.request.scheme}
|
||||
# }
|
||||
# }
|
||||
#
|
||||
#- name: Apply firewall rules to netbox
|
||||
# hosts: netbox
|
||||
# become: true
|
||||
# # remote_user: graham
|
||||
# handlers:
|
||||
# - import_tasks: playbook_handlers.yml
|
||||
#
|
||||
# tasks:
|
||||
# - name: Permit traffic in default zone for http service
|
||||
# ansible.posix.firewalld:
|
||||
# zone: public
|
||||
# service: http
|
||||
# permanent: true
|
||||
# state: enabled
|
||||
#
|
||||
# - name: Permit traffic in default zone for https service
|
||||
# ansible.posix.firewalld:
|
||||
# zone: public
|
||||
# service: https
|
||||
# permanent: true
|
||||
# state: enabled
|
||||
# notify:
|
||||
# - Restart firewalld
|
||||
|
||||
# Tailscale play disabled - no hosts in tailscale_home group
|
||||
#- name: Tailscale
|
||||
# hosts: tailscale_home
|
||||
# become: true
|
||||
# gather_facts: true
|
||||
# vars:
|
||||
# inject_facts_as_vars: false
|
||||
# roles:
|
||||
# - role: artis3n.tailscale
|
||||
# vars:
|
||||
# # Pull Tailscale auth key from environment variable
|
||||
# tailscale_authkey: "{{ lookup('ansible.builtin.env', 'TAILSCALE_KEY') }}"
|
||||
# tailscale_args: "--ssh --advertise-exit-node"
|
||||
# pre_tasks:
|
||||
# - name: Debug - Check Tailscale key (will be partially redacted)
|
||||
# debug:
|
||||
# msg: "Key exists and starts with: {{ lookup('ansible.builtin.env', 'TAILSCALE_KEY')[0:10] }}..."
|
||||
|
||||
- name: Install and configure Caddy
|
||||
hosts: caddy_servers
|
||||
become: true
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
- src: graylog2.graylog
|
||||
- src: caddy_ansible.caddy_ansible
|
||||
- src: bertvv.bind
|
||||
- src: https://github.com/artis3n/tailscale.git
|
||||
version: v5.0.1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue