mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
Implement basic HTTP arguments
This commit is contained in:
parent
1c8da5d21a
commit
f49b071dc6
2 changed files with 5 additions and 2 deletions
|
|
@ -203,8 +203,8 @@ class AnsibleHcloudLoadBalancerService(Hcloud):
|
|||
if not self.module.check_mode:
|
||||
try:
|
||||
print(params)
|
||||
action = self.hcloud_load_balancer.add_service(LoadBalancerService(**params))
|
||||
action.wait_until_finished(max_retries=1000)
|
||||
self.hcloud_load_balancer.add_service(LoadBalancerService(**params)).wait_until_finished(
|
||||
max_retries=1000)
|
||||
except APIException as e:
|
||||
self.module.fail_json(msg=e.message)
|
||||
self._mark_as_changed()
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@
|
|||
load_balancer: "{{hcloud_load_balancer_name}}"
|
||||
protocol: "http"
|
||||
listen_port: 80
|
||||
http:
|
||||
cookie_name: "Test"
|
||||
sticky_sessions: yes
|
||||
state: present
|
||||
register: load_balancer_service
|
||||
- name: verify create load_balancer service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue