[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:
|
interfaces:
|
||||||
adm: eth0
|
adm: eth0
|
||||||
srv_nat: eth1
|
srv_nat: eth1
|
||||||
|
|
||||||
ethercalc:
|
|
||||||
ipv4: '172.16.10.133'
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
---
|
---
|
||||||
- hosts: ethercalc
|
- hosts: ethercalc
|
||||||
|
vars:
|
||||||
|
ethercalc: "{{ glob_ethercalc | default({}) | combine(loc_ethercalc | default({})) }}"
|
||||||
roles:
|
roles:
|
||||||
- ethercalc
|
- ethercalc
|
||||||
|
|
|
@ -11,7 +11,7 @@ RestartSec=3
|
||||||
User=redis
|
User=redis
|
||||||
Group=redis
|
Group=redis
|
||||||
PIDFile=/var/run/ethercalc.pid
|
PIDFile=/var/run/ethercalc.pid
|
||||||
ExecStart=/usr/bin/ethercalc --host {{ ethercalc.ipv4 }} --port 8000
|
ExecStart=/usr/bin/ethercalc --host {{ ethercalc.ip }} --port 8000
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue