From: Anil Belur Date: Wed, 6 Mar 2024 11:44:48 +0000 (+1000) Subject: Fix: Remove unsupported params with ansible 9.x X-Git-Tag: v0.16.4^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=300d3eeb4a08af529f84df195069883386af97a7;p=releng%2Fcommon-packer.git Fix: Remove unsupported params with ansible 9.x Error: Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, expand_argument_vars, removes, stdin, stdin_add_newline, strip_empty_ends. Issue: RELENG-5175 Change-Id: I8cc076ac42824e4b92396021d088fffca25ae361 Signed-off-by: Anil Belur --- diff --git a/provision/devstack-pre-pip-centos.yaml b/provision/devstack-pre-pip-centos.yaml index 34c99ed..3919922 100644 --- a/provision/devstack-pre-pip-centos.yaml +++ b/provision/devstack-pre-pip-centos.yaml @@ -68,8 +68,6 @@ - name: "Read openstack devstack dependencies" # noqa no-changed-when ansible.builtin.shell: "sed -e 's/#.*//' /tmp/devstack/files/rpms/general" register: sed_output - args: - warn: false - name: "Install non-baseline requirements for {{ os_branch }}" ansible.builtin.yum: # noqa no-changed-when name: "{{ sed_output.stdout_lines }}" @@ -100,7 +98,6 @@ exit 0 args: chdir: /tmp/devstack - warn: false with_items: - requirements - keystone diff --git a/provision/install-base-pkgs-RedHat.yaml b/provision/install-base-pkgs-RedHat.yaml index c4d9513..92d441e 100644 --- a/provision/install-base-pkgs-RedHat.yaml +++ b/provision/install-base-pkgs-RedHat.yaml @@ -93,12 +93,10 @@ - name: Enable pki-core ansible.builtin.command: cmd: dnf module enable pki-core -y - warn: false become: true - name: Enable pki-deps ansible.builtin.command: cmd: dnf module enable pki-deps -y - warn: false become: true when: ansible_os_family == 'RedHat' and ansible_facts['distribution_major_version'] is version('8', '>=')