Skip to content

Commit

Permalink
Assign a floating ip address to the test instance (#210)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt committed Dec 20, 2023
1 parent 94cdceb commit 5fea295
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions environments/openstack/playbook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,20 @@
tags:
- test-server
- test-volume

- name: Create floating ip address
openstack.cloud.floating_ip:
cloud: test
state: present
server: test
network: public
wait: true
register: result
tags:
- test-server

- name: Print floating ip address
ansible.builtin.debug:
msg: "{{ result.floating_ip.floating_ip_address }}"
tags:
- test-server
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
The test instance is now assigned a floating IP address.

0 comments on commit 5fea295

Please sign in to comment.