diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-11-02 11:17:27 +0100 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-11-02 11:17:27 +0100 |
commit | 151a8527e295baf4e3bb6f8c248e65c6897b0959 (patch) | |
tree | a8717f78396960e5200f9f588759e987ef2956e1 | |
parent | c8a7c60e4fc651317cbd84a103baffb956200c29 (diff) | |
download | playbooks-ansible-151a8527e295baf4e3bb6f8c248e65c6897b0959.tar.gz playbooks-ansible-151a8527e295baf4e3bb6f8c248e65c6897b0959.tar.xz playbooks-ansible-151a8527e295baf4e3bb6f8c248e65c6897b0959.zip |
Add autorelabel playbook
-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" |