Skip to content

Commit

Permalink
feat: remove proxmox_default_behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
bellackn committed Jun 18, 2024
1 parent 33e63bb commit 4b7d528
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/12-proxmox-default-behavior.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- Remove `proxmox_default_behavior` since this was removed from the community module
2 changes: 0 additions & 2 deletions roles/proxmox_lxc/tasks/create_lxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
password: "{{ item.password | default(proxmox_lxc_password) }}"
netif: "{{ item.netif | default(omit) }}"
pool: "{{ item.pool | default(proxmox_lxc_pool | ternary(proxmox_lxc_pool, omit)) }}"
proxmox_default_behavior: no_defaults
pubkey: "{{ item.pubkey | default(proxmox_lxc_pubkey) }}"
searchdomain: "{{ item.searchdomain | default(proxmox_lxc_searchdomain) }}"
state: present
Expand All @@ -54,7 +53,6 @@
api_user: "{{ item.api_user | default(proxmox_lxc_api_user) }}"
hostname: "{{ item.hostname }}"
node: "{{ item.node | default(proxmox_lxc_node) }}"
proxmox_default_behavior: no_defaults
state: started
register: proxmox_lxc_started

Expand Down
2 changes: 0 additions & 2 deletions roles/proxmox_lxc/tasks/delete_lxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
api_user: "{{ item.api_user | default(proxmox_lxc_api_user) }}"
hostname: "{{ item.hostname }}"
node: "{{ item.node | default(proxmox_lxc_node) }}"
proxmox_default_behavior: no_defaults
state: stopped
register: lxc_stop
ignore_errors: true
Expand All @@ -18,6 +17,5 @@
api_user: "{{ item.api_user | default(proxmox_lxc_api_user) }}"
hostname: "{{ item.hostname }}"
node: "{{ item.node | default(proxmox_lxc_node) }}"
proxmox_default_behavior: no_defaults
state: absent
when: "'Hostname doesn\\'t exist' not in lxc_stop.msg"

0 comments on commit 4b7d528

Please sign in to comment.