/home/zuul/src/opendev.org/opendev/system-config/playbooks/base.yaml
Execution
Date 08 Apr 2026 21:33:01 +0000
Duration 00:01:48.85
Controller bridge99.opendev.org
User root
Versions
Ansible 2.15.13
ara 1.7.5 / 1.7.5
Python 3.10.12
Summary
2 Hosts
87 Tasks
171 Results
1 Plays
27 Files
0 Records

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