diff options
-rw-r--r-- | playbooks/autorelabel.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/playbooks/autorelabel.yml b/playbooks/autorelabel.yml new file mode 100644 index 0000000..be3b446 --- /dev/null +++ b/playbooks/autorelabel.yml @@ -0,0 +1,16 @@ +# Require ansible 2.7 from f29 repo +# Require python 3.7 from f29 repo +# reboot module not available for f27 and f28 +--- +- hosts: all + remote_user: root + tasks: + - name: Relabel du système de fichier après reboot + command: /usr/sbin/fixfiles -F onboot + when: ansible_selinux.status != "disabled" + + - name: Reboot + reboot: + post_reboot_delay: 300 + reboot_timeout: 3600 + when: ansible_selinux.status != "disabled" |