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

@@ -14,6 +14,7 @@
- import_tasks: software/packages_utilities.yml - import_tasks: software/packages_utilities.yml
# Perform remaining tasks: # Perform remaining tasks:
- import_tasks; system_setup/hosts.yml
- import_tasks: system_setup/clock.yml - import_tasks: system_setup/clock.yml
# - import_tasks: system_setup/cron.yml # - import_tasks: system_setup/cron.yml
- import_tasks: system_setup/locale.yml - import_tasks: system_setup/locale.yml

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'}