No description
Find a file
semantic-release-bot 0fb7e62755 chore(release): 1.9.0 [skip ci]
# [1.9.0](https://github.com/de-it-krachten/ansible-role-hosts/compare/v1.8.0...v1.9.0) (2026-03-15)

### Features

* Added support for Fedora 43 ([5800762](5800762c91))
* Drop support for Fedora 41 ([8762a88](8762a88270))
* Drop support for openSUSE Leap 15 ([a6dc290](a6dc290a7b))
* Drop support for SUSE Linux Enterprise 15 ([34743a8](34743a8a18))
2026-03-15 11:38:11 +00:00
.github/workflows Update CI 2026-03-14 19:36:39 +01:00
defaults feat: add support for custom DNS server 2022-07-08 18:10:05 +02:00
meta Update CI 2026-03-14 19:36:39 +01:00
molecule/default Update CI 2026-03-14 19:36:39 +01:00
tasks fix: Fix Alpine support as mount command does not show volumes 2023-01-16 15:48:28 +01:00
.ansible-lint feat: Update CI to latest standards 2022-10-09 15:32:41 +02:00
.cicd Update CI 2026-03-06 22:42:21 +01: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.9.0 [skip ci] 2026-03-15 11:38:11 +00:00
README.md Update CI 2026-03-14 19:36:39 +01: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
  • Fedora 42
  • Fedora 43
  • 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