[ethercalc] PEPCRANSED

certbot_on_virtu
_shirenn 2021-06-25 11:29:14 +02:00
parent 0fedc8cf42
commit 62a00a877e
4 changed files with 5 additions and 4 deletions

View File

@ -0,0 +1,2 @@
glob_ethercalc:
ip: "{{ query('ldap', 'ip', ansible_hostname, 'adm') | ipv4 | first }}"

View File

@ -2,6 +2,3 @@
interfaces:
adm: eth0
srv_nat: eth1
ethercalc:
ipv4: '172.16.10.133'

View File

@ -1,5 +1,7 @@
#!/usr/bin/env ansible-playbook
---
- hosts: ethercalc
vars:
ethercalc: "{{ glob_ethercalc | default({}) | combine(loc_ethercalc | default({})) }}"
roles:
- ethercalc

View File

@ -11,7 +11,7 @@ RestartSec=3
User=redis
Group=redis
PIDFile=/var/run/ethercalc.pid
ExecStart=/usr/bin/ethercalc --host {{ ethercalc.ipv4 }} --port 8000
ExecStart=/usr/bin/ethercalc --host {{ ethercalc.ip }} --port 8000
[Install]
WantedBy=multi-user.target