[ethercalc] PEPCRANSED
parent
0fedc8cf42
commit
62a00a877e
|
@ -0,0 +1,2 @@
|
|||
glob_ethercalc:
|
||||
ip: "{{ query('ldap', 'ip', ansible_hostname, 'adm') | ipv4 | first }}"
|
|
@ -2,6 +2,3 @@
|
|||
interfaces:
|
||||
adm: eth0
|
||||
srv_nat: eth1
|
||||
|
||||
ethercalc:
|
||||
ipv4: '172.16.10.133'
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: ethercalc
|
||||
vars:
|
||||
ethercalc: "{{ glob_ethercalc | default({}) | combine(loc_ethercalc | default({})) }}"
|
||||
roles:
|
||||
- ethercalc
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue