No description
Find a file
Mark van Huijstee 6e6b38057a
Merge pull request #24 from de-it-krachten/dev
Update supported platforms & CI (2026-07-23)
2026-07-25 13:15:26 +02:00
.github/workflows Update CI 2026-07-23 14:38:38 +02:00
defaults feat: add support for custom DNS server 2022-07-08 18:10:05 +02:00
meta Update CI 2026-06-07 16:55:56 +02:00
molecule/default Update CI 2026-07-25 11:42:23 +02:00
tasks Fix linting issues 2026-06-07 21:40:23 +02:00
.ansible-lint Update CI 2026-06-07 16:55:56 +02:00
.cicd Update CI 2026-06-09 10:59:39 +02:00
.cicd.overwrite Update CI 2026-03-14 19:36:39 +01:00
.collections feat: Move to FQCN 2022-10-08 13:39:53 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 02:12:54 +01:00
.releaserc.yml Update CI 2026-03-06 22:42:21 +01:00
.roles feat: Update CI to latest standards 2022-10-09 15:32:41 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 02:12:54 +01:00
CHANGELOG.md chore(release): 1.10.0 [skip ci] 2026-07-23 23:58:59 +00:00
README.md Update CI 2026-06-07 16:55:56 +02:00

CI

ansible-role-hosts

Configures /etc/hosts with custom records and/or configures the system to use custom DNS servers

Dependencies

Roles

None

Collections

None

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • Red Hat Enterprise Linux 91
  • Red Hat Enterprise Linux 101
  • RockyLinux 8
  • RockyLinux 9
  • RockyLinux 10
  • OracleLinux 8
  • OracleLinux 9
  • OracleLinux 10
  • AlmaLinux 8
  • AlmaLinux 9
  • AlmaLinux 10
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Debian 13 (Trixie)
  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS
  • Ubuntu 26.04 LTS
  • Fedora 43
  • Fedora 441
  • Alpine 3

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# Adapter to retrieve IP from
hosts_adapter: default

# Type of name resolving to configure
# hosts = /etc/hosts, dns = /etc/resolv.conf or both
hosts_mode: hosts

# list of name servers
hosts_dns_servers: []

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'hosts'
  hosts: all
  become: 'yes'
  tasks:
    - name: Include role 'hosts'
      ansible.builtin.include_role:
        name: hosts