fix(configuration): allow guest-exec RPCs for EL golden cloning
This commit is contained in:
@@ -54,6 +54,18 @@
|
|||||||
and 'No such file or directory' not in (configuration_enable_service_result.stderr | default(''))
|
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(''))
|
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
|
- name: Enable display manager for selected desktop
|
||||||
when:
|
when:
|
||||||
- _configuration_platform.init_system == 'systemd'
|
- _configuration_platform.init_system == 'systemd'
|
||||||
|
|||||||
Reference in New Issue
Block a user