luks_ssh: Compatibility with RockyLinux

This commit is contained in:
saibotk 2021-11-30 13:58:25 +01:00
parent a65202c741
commit 351fa7fb05
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -122,4 +122,15 @@
masked: true masked: true
become: true become: true
when: 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 - luks_ssh_disable_state_import