2.1 KiB
2.1 KiB
Basics
Overview
Manage some basics configuration for IPR's servers.
Role Variables
- basics__domain : Domain to use [default :
{{ ansible_domain }}
]. - basics__hosts_localhost_manage : If the localhost (127.0.0.1) line should be managed [default :
false
]. - basics__hosts_localhost_content : Content of the localhost (127.0.0.1) line [default :
{{ ansible_hostname }}.{{ basics__domain }} {{ ansible_hostname }} localhost.localdomain localhost
]. - basics__hosts_ipv4_manage : If the ipv4 (lan) line should be managed [default :
false
]. - basics__hosts_ipv4_content : Content of the ipv4 (lan) line [default :
{{ ansible_hostname }}.{{ basics__domain }} {{ ansible_hostname }}
].
Example Playbook
- Use defaults vars :
- hosts: serverXYZ
roles:
- role: ipr-cnrs.basics
Configuration
Hosts
- Ensure to have the correct fqdn and hostname in /etc/hosts.
- You can define the domain if it's not correct on the remote host.
- You can choose to define the localhost (127.0.0.1) line or/and the ipv4 (lan) line.
Development
This source code comes from our Gogs instance and the Github repo exist just to be able to send the role to Ansible Galaxy…
But feel free to send issue/PR here :)
Thanks to this hook, Github automatically got updates from our Gogs instance :)
License
Author Information
Jérémy Gardais
- Source : on IPR's Gogs
- IPR (Institut de Physique de Rennes)