Playbook #2

/home/zuul/src/opendev.org/opendev/system-config/playbooks/base.yaml

Report Status CLI Date Duration Controller User Versions Hosts Plays Tasks Results Files Records
18 Jul 2025 20:43:54 +0000 00:01:43.18 bridge99.opendev.org root Ansible 2.15.13 ara 1.7.2 (client), 1.7.2 (server) Python 3.10.12 3 1 85 251 27 0

File: /home/zuul/src/opendev.org/opendev/system-config/playbooks/roles/base/unbound/tasks/main.yaml

- name: Include OS-specific tasks
  include_tasks: "{{ item }}"
  vars:
    params:
      files: "{{ distro_lookup_path }}"
  loop: "{{ query('first_found', params, errors='ignore') }}"

- name: Install dns-root-data on Noble
  package:
    state: present
    name: dns-root-data
  when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 24

- name: Install unbound
  package:
    state: present
    name: unbound

- name: Write dhclient config files
  include_tasks: dhclient.yaml
  loop:
    - /etc/dhcp/dhclient.conf
    - /etc/dhcp/dhclient-eth0.conf

- name: Write resolv.conf
  copy:
    src: resolv.conf
    dest: /etc/resolv.conf
    mode: 0444

- name: Enable unbound
  service:
    name: unbound
    enabled: true
    state: started