diff options
author | Erik Skultety <eskultet@redhat.com> | 2023-01-11 17:32:24 +0100 |
---|---|---|
committer | Erik Skultety <eskultet@redhat.com> | 2023-01-11 17:32:24 +0100 |
commit | 08f9cdf3d464d8c992eb3aa0902aa94ddf4aac2a (patch) | |
tree | 4e75c901278d8571874f1a9d635edb5c306b19b3 | |
parent | 040740811cbb557a6b9ed2ae39b009240c783dc9 (diff) | |
download | libvirt-ci-08f9cdf3d464d8c992eb3aa0902aa94ddf4aac2a.zip libvirt-ci-08f9cdf3d464d8c992eb3aa0902aa94ddf4aac2a.tar.gz libvirt-ci-08f9cdf3d464d8c992eb3aa0902aa94ddf4aac2a.tar.bz2 |
ansible: playbooks: Drop the 'args:warn' keyword from 'command' tasks
'warn' is no longer an accepted keyword argument for the builtin
command module and without it newer Ansible (ansible-core 2.12+) fails
with:
"Unsupported parameters for (ansible.legacy.command) module: warn.
Supported parameters include: stdin_add_newline, removes, creates,
stdin, chdir, executable, _uses_shell, strip_empty_ends, argv,
_raw_params."
Signed-off-by: Erik Skultety <eskultet@redhat.com>
-rw-r--r-- | lcitool/ansible/playbooks/update/tasks/base.yml | 18 | ||||
-rw-r--r-- | lcitool/ansible/playbooks/update/tasks/packages.yml | 4 |
2 files changed, 0 insertions, 22 deletions
diff --git a/lcitool/ansible/playbooks/update/tasks/base.yml b/lcitool/ansible/playbooks/update/tasks/base.yml index dacbfe1..05240b2 100644 --- a/lcitool/ansible/playbooks/update/tasks/base.yml +++ b/lcitool/ansible/playbooks/update/tasks/base.yml @@ -21,16 +21,12 @@ - name: Enable CRB repository command: '{{ packaging.command }} config-manager --set-enabled crb -y' - args: - warn: no when: - (os.name == 'CentOS' and os.version == 'Stream9') or (os.name == 'AlmaLinux' and os.version == '9') - name: Enable PowerTools repository command: '{{ packaging.command }} config-manager --set-enabled powertools -y' - args: - warn: no when: - (os.name == 'CentOS' and os.version == 'Stream8') or (os.name == 'AlmaLinux' and os.version == '8') @@ -78,16 +74,12 @@ - name: Update installed packages command: '{{ packaging.command }} update --refresh --exclude "kernel*" -y' - args: - warn: no when: - os.name == 'Fedora' - os.version == 'Rawhide' - name: Update installed packages command: '{{ packaging.command }} update --disablerepo="*" --enablerepo=fedora-rawhide-kernel-nodebug "kernel*" -y' - args: - warn: no when: - os.name == 'Fedora' - os.version == 'Rawhide' @@ -101,30 +93,22 @@ - name: Update installed packages shell: '{{ packaging.command }} update && {{ packaging.command }} upgrade -y' - args: - warn: no when: - packaging.format == 'pkg' - name: Clean up packages after update command: '{{ packaging.command }} mark install "kernel*"' - args: - warn: no when: - os.name == 'Fedora' - name: Clean up packages after update shell: '{{ packaging.command }} clean packages -y && {{ packaging.command }} autoremove -y' - args: - warn: no when: - packaging.format == 'rpm' - os.name != 'OpenSUSE' - name: Clean up packages after update shell: '{{ packaging.command }} clean' - args: - warn: no when: - os.name == 'OpenSUSE' @@ -137,7 +121,5 @@ - name: Clean up packages after update shell: '{{ packaging.command }} clean -y && {{ packaging.command }} autoremove -y' - args: - warn: no when: - packaging.format == 'pkg' diff --git a/lcitool/ansible/playbooks/update/tasks/packages.yml b/lcitool/ansible/playbooks/update/tasks/packages.yml index 63d9153..10e3359 100644 --- a/lcitool/ansible/playbooks/update/tasks/packages.yml +++ b/lcitool/ansible/playbooks/update/tasks/packages.yml @@ -11,12 +11,8 @@ - name: 'Install PyPI packages' command: '{{ paths.pip3 }} install {{ item }}' - args: - warn: no loop: '{{ pypi_packages }}' - name: 'Install CPAN packages' command: 'cpanm --notest {{ item }}' - args: - warn: no loop: '{{ cpan_packages }}' |