/etc/hosts
Jump to navigation
Jump to search
- Linux and macOS:
/etc/hosts
- name: Host file entries
tags: mount
ansible.builtin.lineinfile:
path: /etc/hosts
state: "Template:Item.state"
regexp: "^Template:Item.ip Template:Item.hostname"
line: "Template:Item.ip Template:Item.hostname"
loop: "Template:Host file entries"
notify: systemctl daemon-reload
Related terms[edit]
dnsmasq/etc/resolv.conf/etc/dnsmasq.confC:\Windows\System32\Drivers\etc\hosts/etc/ansible/hosts%WinDir%\HOSTS/private/etc/hosts~/.config/gh/hosts.yml/etc/sudoers- ansible.builtin.lineinfile
See also[edit]
/etc/hosts- DNS, DNS files,
/etc/hosts, /etc/resolv.conf, /etc/systemd/resolved.conf, /etc/nsswitch.conf /etc/,/etc/passwd,/etc/group,/etc/rc.local,/etc/ssl/private/,/etc/letsencrypt/,/etc/init/ttyS0.conf,/etc/issue,/etc/libvirt/qemu/,/etc/libvirt/qemu/networks/,/etc/login.defs,/etc/mtab, /etc/hosts, /etc/profile
Advertising: