Files
ansible-pull/roles/base/tasks/main.yml
T
rene d0fe8afddc fix bind snmpd validation, wireguard conditional, and step-ca import ordering
- nameserver: add named-checkconf wrapper that validates the edited fragment in
  the context of the full named.conf (lineinfile validate needs %s; isolated
  check fails on include-based configs) and surfaces BIND diagnostics on stderr
- base: make wireguard 'when' boolean-correct (ipaddr('public') returns a string)
- base/nameserver: skip step-ca import in base on nameservers (resolv.conf not
  yet 127.0.0.1) and import it in the nameserver play after DNS setup
2026-10-22 16:21:49 +02:00

52 lines
1.8 KiB
YAML
Executable File

# Load distro-specific variables
- include_vars: "{{ ansible_facts['distribution'] | lower }}.yml"
tags: always
ignore_errors: True
- block:
- debug:
msg: Debug
# Set up the ansible environment
- import_tasks: ansible_setup.yml
# basics
- import_tasks: system_setup/hostname.yml
- import_tasks: system_setup/hosts.yml
- import_tasks: system_setup/clock.yml
- import_tasks: system_setup/locale.yml
- import_tasks: system_setup/wireguard.yml
when:
- wireguard is defined
- wireguard == true
- ansible_default_ipv4.address | ansible.utils.ipaddr('public') | length > 0
ignore_errors: True
- import_tasks: system_setup/git.yml
# install software
# - import_tasks: software/repositories.yml
- import_tasks: software/packages_zsh.yml
# - import_tasks: software/packages_development.yml
- import_tasks: software/packages_cleanup.yml
# - import_tasks: software/packages_pip.yml
- import_tasks: software/packages_utilities.yml
# Perform remaining tasks:
- import_tasks: users.yml
- import_tasks: system_setup/cron.yml
# - import_tasks: system_setup/logging.yml
# - import_tasks: system_setup/memory.yml
# - import_tasks: system_setup/microcode.yml
- import_tasks: system_setup/openssh.yml
- import_tasks: system_setup/scripts.yml
- import_tasks: system_setup/disable_standby.yml
when: is_proxmox is defined and is_proxmox == true
- import_tasks: software/wazuh-agent.yml
when: ansible_facts['distribution'] in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint", "Archlinux"]
- import_tasks: system_setup/disable_standby.yml
when: is_proxmox is defined and is_proxmox == true
- import_tasks: system_setup/import_stepca.yml
when: "'nameserver' not in group_names"
rescue:
- set_fact: task_failed=true