Skip to content
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

fix: Execute function when required variable is defined #234

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions playbooks/create_compute_node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
param_dns_ip: "{{ day2_compute_node.vm_ip }}"

- role: create_compute_node
when: param_compute_node.hostname is defined
# Some tasks will be delegated to the bastion host and target KVM host
param_compute_node: "{{ day2_compute_node }}"

Expand Down
1 change: 1 addition & 0 deletions roles/delete_compute_node/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

- name: Delete compute node VM on KVM host and print command output
tags: delete_compute_node
when: param_compute_node.hostname is defined
delegate_to: "{{ param_compute_node.hostname }}"
block:
- name: Delete compute node VM on KVM host
Expand Down