stafwag.etc_hosts

Ansible Role: etc_hosts

Un rol de Ansible para gestionar /etc/hosts

Requisitos

Ninguno

Variables del Rol

Variables relacionadas con el SO

ninguna

Variables relacionadas con el Playbook

  • etc_hosts:
    • hosts: Array de hosts
      • name: nombre del host.
      • ip: dirección IP
      • state: "ausente"|"presente" (por defecto)

Dependencias

Ninguna

Ejemplos de Playbooks

- name: configurar /etc/hosts en sistemas dmz
  hosts: dmz
  become: true
  vars:
    etc_hosts:
      hosts:
        - { name: "localhost", ip: "127.0.0.1", state: "presente" }
        - { name: "stafgit", ip: "10.10.10.10", state: "ausente" }
        - { name: "stafmail", ip: "10.10.10.10", state: "ausente" }
  roles:
    - stafwag.etc_hosts

Licencia

MIT/BSD

Información del Autor

Creado por Staf Wagemakers, correo: staf@wagemakers.be, sitio web: http://www.wagemakers.be.

Instalar
ansible-galaxy install stafwag.etc_hosts
Licencia
mit
Descargas
401
Propietario