ahuffman.yp

Rôle Ansible

ahuffman.yp

Un rôle Ansible pour configurer yp.conf et le service NIS ypbind.

Variables du rôle

Nom de la variable Description Requis Valeur par défaut Type
yp_bind_pkg Le nom du paquet pour ypbind. Vous pouvez changer pour un nom.de.paquet particulier si nécessaire et l'adapter à votre distribution. non ypbind chaîne
yp_bind_svc Le nom du service ypbind. non ypbind chaîne
yp_nisdomain Nom de domaine NIS. oui "" chaîne
yp_nisserver Liste des serveurs NIS pour votre domaine. oui [] liste
yp_domain_broadcast Utiliser ou non la diffusion sur votre domaine local. non False booléen
yp_domain_slp Interroger le serveur SLP local pour ypserver supportant NISDOMAIN. non False booléen
yp_server Nom d'hôte du serveur de votre domaine local. Doit être listé dans /etc/hosts (voir man yp.conf). oui "" chaîne
yp_broadcast Si aucun serveur pour le domaine par défaut n'est spécifié ou si aucun n'est accessible, essayez un appel de diffusion pour trouver un serveur. non False booléen
yp_conf_path Chemin vers votre fichier de configuration yp. non "/etc/yp.conf" chaîne

Exemple de Playbook

- name: "Configurer yp.conf sur mes serveurs"
  hosts: all
  roles:
    - role: "ahuffman.yp"
      yp_nisdomain: "mondomaine.com"
      yp_nisserver:
        - "nis1.mondomaine.com"
        - "nis2.mondomaine.com"
      yp_domain_broadcast: True
      yp_domain_slp: True
      yp_broadcast: True

Licence

MIT

Auteur

Andrew J. Huffman

À propos du projet

An Ansible role to install and configure ypbind

Installer
ansible-galaxy install ahuffman.yp
Licence
mit
Téléchargements
151
Propriétaire