stafwag.etc_hosts
Rola Ansible: etc_hosts
Rola Ansible do zarządzania plikiem /etc/hosts
Wymagania
Brak
Zmienne Roli
Zmienne związane z systemem operacyjnym
brak
Zmienne związane z playbookiem
- etc_hosts:
- hosts: Tablica hostów
- name: nazwa hosta.
- ip: adres IP
- state: "absent"|"present" (domyślnie)
- hosts: Tablica hostów
Zależności
Brak
Przykładowe Playbooki
- name: skonfiguruj /etc/hosts na systemach dmz
hosts: dmz
become: true
vars:
etc_hosts:
hosts:
- { name: "localhost", ip: "127.0.0.1", state: "present" }
- { name: "stafgit", ip: "10.10.10.10", state: "absent" }
- { name: "stafmail", ip: "10.10.10.10", state: "absent" }
roles:
- stafwag.etc_hosts
Licencja
MIT/BSD
Informacje o Autorze
Twórca: Staf Wagemakers, email: staf@wagemakers.be, strona internetowa: http://www.wagemakers.be.