From: Vallari Agrawal Date: Mon, 20 May 2024 03:34:39 +0000 (+0530) Subject: Fix "Unsupported parameters for (stat) module: get_md5" X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1f628244ab7107af11a5c8d418aa002ceab094b2;p=ceph-cm-ansible.git 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 --- diff --git a/roles/cobbler_profile/tasks/download_image.yml b/roles/cobbler_profile/tasks/download_image.yml index 17b1a73..b358208 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 66ef692..0bc5d71 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 ea4f861..e90f7f8 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 f9ea51b..71db346 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 f435af2..eb12133 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