Skip to content

Commit

Permalink
Assign a floating ip address to the test instance (#1906)
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 18e1fb6 commit f42a54a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions environments/openstack/playbook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,16 @@
state: present
server: test
volume: test

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

- name: Print floating ip address
ansible.builtin.debug:
msg: "{{ result.floating_ip.floating_ip_address }}"
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 f42a54a

Please sign in to comment.