moved polupating /etc/hosts to role "base"

This commit is contained in:
rene committed 2022-07-02 17:05:49 +02:00
1 parent 4b867ae9c1
commit 0220ace94a
3 files changed
+4 -4

No files matched your search

+1
View File
@@ -8,6 +8,7 @@
msg: Debug
# basics
- import_tasks: system_setup/hostname.yml
- include_tasks: system_setup/hosts.yml
- import_tasks: system_setup/git.yml
# install software
# - import_tasks: software/repositories.yml
+12
View File
@@ -0,0 +1,12 @@
- 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 coruscant.universe.local'}
when:
- set_hosts is defined
- set_hosts == true