edit /etc/hosts

This commit is contained in:
2022-02-20 18:54:08 +01:00
parent af14219006
commit 2b6d4fece2
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
- name: system setup | /etc/hosts | populate
lineinfile:
path: "/etc/hosts"
line: "{{ item.ip }} {{ item.fqdn }}"
mode: '0644'
owner: 'root'
group: 'root'
loop:
- { ip: '192.168.1.240', fqdn: 'gitlab.social.my-wan.de'}