mirror of https://github.com/Aidaho12/haproxy-wi
v7.2.5.0: Update ansible_status with dynamic service name
In the install/routes.py, the 'run_ansible' method call in the 'install' function has been updated to dynamically pass the 'service' name, resulting in a more flexible and adaptable code. Previously, it was hardcoded to run only the 'waf_service', which limited its usage.pull/384/head
parent
c6b2085938
commit
27494d631a
|
@ -92,7 +92,7 @@ def install_waf(service, server_ip):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return f'error: Cannot create inventory: {e}'
|
return f'error: Cannot create inventory: {e}'
|
||||||
try:
|
try:
|
||||||
ansible_status = service_mod.run_ansible(inv, server_ips, f'waf_service'), 201
|
ansible_status = service_mod.run_ansible(inv, server_ips, f'waf_{service}'), 201
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return f'error: Cannot install WAF: {e}'
|
return f'error: Cannot install WAF: {e}'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue