Skip to content
Snippets Groups Projects
Commit 62a00a87 authored by shirenn's avatar shirenn 🌊
Browse files

[ethercalc] PEPCRANSED

parent 0fedc8cf
No related branches found
No related tags found
1 merge request!272Stabilize Ansible
glob_ethercalc:
ip: "{{ query('ldap', 'ip', ansible_hostname, 'adm') | ipv4 | first }}"
...@@ -2,6 +2,3 @@ ...@@ -2,6 +2,3 @@
interfaces: interfaces:
adm: eth0 adm: eth0
srv_nat: eth1 srv_nat: eth1
ethercalc:
ipv4: '172.16.10.133'
#!/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 ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment