checkpoint 2 up and running
This commit is contained in:
parent
c532d498c4
commit
e5ef964dc6
9 changed files with 103 additions and 18 deletions
|
@ -7,13 +7,16 @@
|
|||
label_selectors:
|
||||
- "app=laravelio"
|
||||
register: service_info
|
||||
until: service_facts.resources[0].status.loadBalancer.ingress[0].ip is defined
|
||||
until: service_info.resources[0].status.loadBalancer.ingress[0].ip is defined
|
||||
retries: 60
|
||||
delay: 10
|
||||
|
||||
- name: Store app_ip
|
||||
set_fact:
|
||||
app_ip: "{{ service_facts.resources[0].status.loadBalancer.ingress[0].ip }}"
|
||||
app_ip: "{{ service_info.resources[0].status.loadBalancer.ingress[0].ip }}"
|
||||
- name: Print app_ip
|
||||
debug:
|
||||
var: app_ip
|
||||
|
||||
- name: Update app_ip in Inventory
|
||||
lineinfile:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue