-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS Auth NSG Support for Bloxone Ansible v2 #43
base: v2
Are you sure you want to change the base?
Conversation
auth_nsg_name: "test-auth-nsg-{{ 999999 | random | string }}" | ||
secondary_auth_nsg_name: "test-secondary-auth-nsg-{{ 999999 | random | string }}" | ||
|
||
# - name: Create an Auth NSG (check mode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this code commented out ?
- secondary_auth_nsg_info.objects | length == 1 | ||
- secondary_auth_nsg_info.objects[0].nsgs | length == 1 | ||
- secondary_auth_nsg_info.objects[0].nsgs[0] == auth_nsg.id | ||
- block: # Unlinking block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Unlinking is quite unnecessary . If the the unlinking is performed because it's interfering with the deletion of the primary object , why not delete the secondary object first in the always
section and then cleanup the Primary.
# - auth_nsg_info.objects[0].id == auth_nsg.id | ||
# - auth_nsg_info.objects[0].tags.location == "site-1" | ||
|
||
- name: Create the Primary Auth NSG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use Primary NSG to be the one that is created using the task with Tags above , no need to create an additional NSG !
plugins/modules/dns_auth_nsg.py
Outdated
type: "primary" | ||
state: "present" | ||
tags: | ||
location: "my-location" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
location: "my-location" | |
location: "site-1" |
No description provided.