moved polupating /etc/hosts to role "base"

This commit is contained in:
2022-07-02 17:05:49 +02:00
parent 4b867ae9c1
commit 0220ace94a
3 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,6 @@
ignore_errors: True
- block:
- include_tasks: system_setup/hosts.yml
- include_tasks: utilities/ssmtp.yml
- include_tasks: utilities/netdata.yml
when: netdata is defined and netdata == true
@@ -23,8 +22,8 @@
- ansible_default_ipv4.address | ipaddr('public')
ignore_errors: True
- include_tasks: system_setup/cron.yml
- include_role:
name: base
tasks_from: users.yml
# - include_role:
# name: base
# tasks_from: users.yml
# vim: ts=2 sw=2

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 coruscant.universe.local'}
when:
- set_hosts is defined
- set_hosts == true