Hostname and Hosts file

Document Control

TODO:

  • Overall structure.
  • Initial draft complete
  • Testing
  • Ready

Ansible Role Ansible Quality Score Build Status GitHub issues GitHub last commit

User Story: Hostname

As a: UNIX and Linux system administrator

I want to: set up my system hostname and hosts file

So that: have proper FQDN resolution.

Using the role

Using the role in a playbook
---
- name: Install hostname
  hosts: all

  tasks:
    - name: hostname is configured
      import_role:
        name: crivetimihai.hostname
      vars:
        hostname_enable_service: true
      tags: hostname
# Install the role
ansible-galaxy install crivetimihai.hostname

# Run the playbook
ansible-playbook hostname-playbook.yml

Last update: 2020-02-04