Skip to content

Commit

Permalink
Fix: Remove unsupported params with ansible 9.x
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
askb committed Mar 6, 2024
1 parent 8e2583d commit 300d3ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions provision/devstack-pre-pip-centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -100,7 +98,6 @@
exit 0
args:
chdir: /tmp/devstack
warn: false
with_items:
- requirements
- keystone
Expand Down
2 changes: 0 additions & 2 deletions provision/install-base-pkgs-RedHat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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', '>=')

Expand Down

0 comments on commit 300d3ee

Please sign in to comment.