Skip to content

Commit

Permalink
Work around upstream bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelee committed Oct 26, 2021
1 parent d117409 commit 4b41ff5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions roles/configure_security_group/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
---
- name: "Work around bug where ibm_is_security_group_rule is not idempotent"
ibm.cloudcollection.ibm_is_security_group_rule:
state: absent
group: "{{ vpc.default_security_group }}"
region: "{{ ibmcloud_ic_region }}"
direction: inbound
remote: 0.0.0.0/0
tcp:
- port_max: "{{ item }}"
port_min: "{{ item }}"
loop: "{{ list_of_ports }}"

- name: "Configure Security Group Rule to open certain ports on the VSI"
ibm.cloudcollection.ibm_is_security_group_rule:
state: available
Expand Down

0 comments on commit 4b41ff5

Please sign in to comment.