Ajout des variables pour enbarr (la borne Wi-Fi) et garreg-mach (le Switch)
This commit is contained in:
@@ -15,3 +15,12 @@
|
|||||||
src: files/remote.conf
|
src: files/remote.conf
|
||||||
dest: /etc/rsyslog.d/remote.conf
|
dest: /etc/rsyslog.d/remote.conf
|
||||||
notify: restart rsyslog
|
notify: restart rsyslog
|
||||||
|
|
||||||
|
- name: insert hosts into /etc/hosts
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/hosts
|
||||||
|
state: present
|
||||||
|
insertbefore: '^# --- BEGIN PVE ---$'
|
||||||
|
line: "{{ item.address }} {{ item.name }}"
|
||||||
|
loop: "{{ pretty_named_hosts }}"
|
||||||
|
notify: restart rsyslog
|
||||||
|
5
roles/rsyslog/vars/main.yml
Normal file
5
roles/rsyslog/vars/main.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
pretty_named_hosts:
|
||||||
|
- name: enbarr
|
||||||
|
address: 10.233.212.50
|
||||||
|
- name: garreg-mach
|
||||||
|
address: 10.233.212.66
|
Reference in New Issue
Block a user