diff --git a/roles/configuration/tasks/services.yml b/roles/configuration/tasks/services.yml index c58ec36..342d036 100644 --- a/roles/configuration/tasks/services.yml +++ b/roles/configuration/tasks/services.yml @@ -54,6 +54,18 @@ and 'No such file or directory' not in (configuration_enable_service_result.stderr | default('')) and 'does not exist' not in (configuration_enable_service_result.stderr | default('')) +- name: Check for the EL qemu-guest-agent RPC allow-list + ansible.builtin.stat: + path: /mnt/etc/sysconfig/qemu-ga + register: configuration_qga_sysconfig + +- name: Allow clone-stamping RPCs in the EL qemu-guest-agent allow-list + when: configuration_qga_sysconfig.stat.exists + ansible.builtin.replace: + path: /mnt/etc/sysconfig/qemu-ga + regexp: '^(FILTER_RPC_ARGS="--allow-rpcs=(?:(?!guest-exec)[^"])*)"' + replace: '\1,guest-exec,guest-exec-status,guest-file-open,guest-file-close,guest-file-read,guest-file-write"' + - name: Enable display manager for selected desktop when: - _configuration_platform.init_system == 'systemd'