From 5aea9e4faeeddd2e749c1e53c82a7568fccad61a Mon Sep 17 00:00:00 2001 From: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> Date: Fri, 15 Nov 2024 11:39:07 +0800 Subject: [PATCH] Bump ansible to v2.16 (#1758) * bump to v2.16 https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix * fix lint --- README.md | 2 +- meta/runtime.yml | 2 +- plugins/modules/azure_rm_keyvaultsecret.py | 1 + pr-pipelines.yml | 4 ++-- release-pipelines.yml | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fdb0ac37d..47505a4de 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ It is recommended to run ansible in [Virtualenv](https://virtualenv.pypa.io/en/l ## Requirements -- ansible version >= 2.15 +- ansible version >= 2.16 To install Azure collection hosted in Galaxy: diff --git a/meta/runtime.yml b/meta/runtime.yml index 7b8068455..92d537954 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -1,5 +1,5 @@ --- -requires_ansible: '>=2.15.0' +requires_ansible: '>=2.16.0' action_groups: all: - azure.azcollection.azure_rm_accesstoken_info diff --git a/plugins/modules/azure_rm_keyvaultsecret.py b/plugins/modules/azure_rm_keyvaultsecret.py index f36c86f1a..0b3d767cf 100644 --- a/plugins/modules/azure_rm_keyvaultsecret.py +++ b/plugins/modules/azure_rm_keyvaultsecret.py @@ -209,6 +209,7 @@ def exec_module(self, **kwargs): if not self.check_mode: # Create secret if self.state == 'present' and changed: + status = 'Created' if self.get_delete_secret(self.secret_name): if self.recover_if_need: results['secret_id'] = self.recover_delete_secret(self.secret_name) diff --git a/pr-pipelines.yml b/pr-pipelines.yml index f6f215a3e..dea772dcf 100644 --- a/pr-pipelines.yml +++ b/pr-pipelines.yml @@ -2,7 +2,7 @@ parameters: - name: PYTHON_VER displayName: 'Python Version' type: string - default: "3.9" + default: "3.10" values: - "2.7" - "3.6" @@ -13,7 +13,7 @@ parameters: - name: ANSIBLE_VER displayName: 'Ansible Version' type: string - default: "2.15" + default: "2.16" values: - "2.9" - "2.10" diff --git a/release-pipelines.yml b/release-pipelines.yml index d583e814a..ea5326868 100644 --- a/release-pipelines.yml +++ b/release-pipelines.yml @@ -16,7 +16,7 @@ pool: steps: - script: | pip install wheel - pip install ansible==v2.15.0 + pip install ansible==v2.16.0 ansible --version displayName: 'install ansible'