diff --git a/roles/luks_ssh/tasks/main.yml b/roles/luks_ssh/tasks/main.yml index 051d5cd..2c38358 100644 --- a/roles/luks_ssh/tasks/main.yml +++ b/roles/luks_ssh/tasks/main.yml @@ -122,4 +122,15 @@ masked: true become: true when: + - ansible_os_family == "RedHat" and not ansible_distribution == "Rocky" + - luks_ssh_disable_state_import + +- name: Disable import-state service, so that it doesn not overwrite ifcfg scripts. + systemd: + name: "import-state" + enabled: false + masked: true + become: true + when: + - ansible_distribution == "Rocky" - luks_ssh_disable_state_import