Skip to content

Commit

Permalink
Fixed no undeploy feature in machine_operations to work with Provid…
Browse files Browse the repository at this point in the history
…entia tags
  • Loading branch information
AllRWeak authored and Lauri Leitma committed Sep 5, 2024
1 parent 98fca09 commit cea2945
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nova/core/galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: nova
name: core
version: 3.3.9
version: 3.3.10
readme: README.md
authors:
- https://github.com/novateams
Expand Down
2 changes: 1 addition & 1 deletion nova/core/roles/machine_operations/tasks/aws/remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: NO UNDEPLOY OR IMMUTABLE SET
ansible.builtin.fail:
msg: "{{ inventory_hostname }} HAS no_undeploy or immutable SET AND WON'T BE REMOVED"
when: immutable or no_undeploy or 'immutable' in group_names or 'no_undeploy' in group_names
when: immutable or no_undeploy or 'immutable' in group_names or 'no_undeploy' in group_names or 'custom_no_undeploy' in group_names

- name: Terminating {{ custom_vm_name | default(vm_name) }} EC2 instance...
amazon.aws.ec2_instance:
Expand Down
2 changes: 1 addition & 1 deletion nova/core/roles/machine_operations/tasks/linode/remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: NO UNDEPLOY OR IMMUTABLE SET
ansible.builtin.fail:
msg: "{{ inventory_hostname }} HAS no_undeploy or immutable SET AND WON'T BE REMOVED"
when: immutable or no_undeploy or 'immutable' in group_names or 'no_undeploy' in group_names
when: immutable or no_undeploy or 'immutable' in group_names or 'no_undeploy' in group_names or 'custom_no_undeploy' in group_names

- name: Deleting {{ custom_vm_name | default(vm_name) }} VM from Linode...
linode.cloud.instance:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: NO UNDEPLOY OR IMMUTABLE SET
ansible.builtin.fail:
msg: "{{ inventory_hostname }} HAS no_undeploy or immutable SET AND WON'T BE REMOVED"
when: immutable or no_undeploy or 'immutable' in group_names or 'no_undeploy' in group_names
when: immutable or no_undeploy or 'immutable' in group_names or 'no_undeploy' in group_names or 'custom_no_undeploy' in group_names

- name: Including VMware Workstation remove tasks...
become: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: NO UNDEPLOY OR IMMUTABLE SET
ansible.builtin.fail:
msg: "{{ inventory_hostname }} HAS no_undeploy or immutable SET AND WON'T BE REMOVED"
when: immutable or no_undeploy or 'immutable' in group_names or 'no_undeploy' in group_names
when: immutable or no_undeploy or 'immutable' in group_names or 'no_undeploy' in group_names or 'custom_no_undeploy' in group_names

- name: Deleting {{ custom_vm_name | default(vm_name) }} VM...
community.vmware.vmware_guest:
Expand Down

0 comments on commit cea2945

Please sign in to comment.