From 1f628244ab7107af11a5c8d418aa002ceab094b2 Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Mon, 20 May 2024 09:04:39 +0530 Subject: [PATCH] Fix "Unsupported parameters for (stat) module: get_md5" Remove get_md5 because it was removed in ansible 2.9: https://github.com/ansible-community/ansible-build-data/blob/0dee49ac8a7674153606ddc6432d4029eb20172d/9/CHANGELOG-v9.rst#L5195 fixes: https://tracker.ceph.com/issues/66106 Signed-off-by: Vallari Agrawal --- roles/cobbler_profile/tasks/download_image.yml | 4 ++-- roles/cobbler_profile/tasks/download_iso.yml | 2 +- roles/pulpito/tasks/main.yml | 1 - roles/pulpito/tasks/setup_pulpito.yml | 2 -- roles/testnode/tasks/resolvconf.yml | 1 - 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/roles/cobbler_profile/tasks/download_image.yml b/roles/cobbler_profile/tasks/download_image.yml index 17b1a733..b3582088 100644 --- a/roles/cobbler_profile/tasks/download_image.yml +++ b/roles/cobbler_profile/tasks/download_image.yml @@ -1,10 +1,10 @@ --- - name: Check to see if the kernel exists - stat: path={{ kernel_path }} get_checksum=no get_md5=no + stat: path={{ kernel_path }} get_checksum=no register: kernel_stat - name: Check to see if the initrd exists - stat: path={{ initrd_path }} get_checksum=no get_md5=no + stat: path={{ initrd_path }} get_checksum=no register: initrd_stat - name: Download kernel diff --git a/roles/cobbler_profile/tasks/download_iso.yml b/roles/cobbler_profile/tasks/download_iso.yml index 66ef6921..0bc5d714 100644 --- a/roles/cobbler_profile/tasks/download_iso.yml +++ b/roles/cobbler_profile/tasks/download_iso.yml @@ -1,6 +1,6 @@ --- - name: Check to see if the ISO exists - stat: path={{ iso_path }} get_checksum=no get_md5=no + stat: path={{ iso_path }} get_checksum=no register: iso_stat - name: Download ISO diff --git a/roles/pulpito/tasks/main.yml b/roles/pulpito/tasks/main.yml index ea4f8614..e90f7f83 100644 --- a/roles/pulpito/tasks/main.yml +++ b/roles/pulpito/tasks/main.yml @@ -43,7 +43,6 @@ stat: path: "{{ supervisor_conf_path }}" get_checksum: no - get_md5: no register: supervisor_conf - name: Copy supervisord config diff --git a/roles/pulpito/tasks/setup_pulpito.yml b/roles/pulpito/tasks/setup_pulpito.yml index f9ea51ba..71db346e 100644 --- a/roles/pulpito/tasks/setup_pulpito.yml +++ b/roles/pulpito/tasks/setup_pulpito.yml @@ -28,7 +28,6 @@ stat: path: "{{ pulpito_repo_path }}/virtualenv" get_checksum: no - get_md5: no register: virtualenv - name: Create the virtualenv @@ -56,7 +55,6 @@ stat: path: "{{ pulpito_repo_path }}/prod.py" get_checksum: no - get_md5: no register: pulpito_config - name: Copy pulpito config diff --git a/roles/testnode/tasks/resolvconf.yml b/roles/testnode/tasks/resolvconf.yml index f435af29..eb12133a 100644 --- a/roles/testnode/tasks/resolvconf.yml +++ b/roles/testnode/tasks/resolvconf.yml @@ -14,7 +14,6 @@ stat: path: /etc/network/interfaces get_checksum: no - get_md5: no register: etc_network_interfaces - name: Rewrite /etc/network/interfaces to use dhcp -- 2.47.3