edit /etc/hosts
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
- import_tasks: software/packages_utilities.yml
|
||||
|
||||
# Perform remaining tasks:
|
||||
- import_tasks; system_setup/hosts.yml
|
||||
- import_tasks: system_setup/clock.yml
|
||||
# - import_tasks: system_setup/cron.yml
|
||||
- import_tasks: system_setup/locale.yml
|
||||
|
||||
9
roles/base/tasks/system_setup/hosts.yml
Normal file
9
roles/base/tasks/system_setup/hosts.yml
Normal 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'}
|
||||
Reference in New Issue
Block a user