moved editing the hosts file to role server

because only servers might be outside the home network
and connect with wireguard
This commit is contained in:
rene committed 2022-02-25 14:12:21 +01:00
1 parent 785e422be4
commit aeaf0af01c
4 files changed
+2 -2

No files matched your search

-1
View File
@@ -14,7 +14,6 @@
- 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
-12
View File
@@ -1,12 +0,0 @@
- 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'}
when:
- set_hosts is defined
- set_hosts == true