diff --git a/changelogs/fragments/12-proxmox-default-behavior.yml b/changelogs/fragments/12-proxmox-default-behavior.yml new file mode 100644 index 0000000..da0e63e --- /dev/null +++ b/changelogs/fragments/12-proxmox-default-behavior.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - Remove `proxmox_default_behavior` since this was removed from the community module diff --git a/roles/proxmox_lxc/tasks/create_lxc.yml b/roles/proxmox_lxc/tasks/create_lxc.yml index 6b97f9d..3a347a9 100644 --- a/roles/proxmox_lxc/tasks/create_lxc.yml +++ b/roles/proxmox_lxc/tasks/create_lxc.yml @@ -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 @@ -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 diff --git a/roles/proxmox_lxc/tasks/delete_lxc.yml b/roles/proxmox_lxc/tasks/delete_lxc.yml index d0dbd6b..d509efb 100644 --- a/roles/proxmox_lxc/tasks/delete_lxc.yml +++ b/roles/proxmox_lxc/tasks/delete_lxc.yml @@ -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 @@ -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"