tmp.mount - handle masking

This commit is contained in:
Josh Lay 2020-04-17 19:41:17 -05:00
parent a81634c55e
commit 8a543c35aa

View file

@ -11,12 +11,10 @@
dest: "/etc/systemd/system/tmp.mount.d/fix-enable.conf" dest: "/etc/systemd/system/tmp.mount.d/fix-enable.conf"
src: "fix-enable.conf" src: "fix-enable.conf"
register: fix_enable_conf register: fix_enable_conf
- name: reload systemd - name: enable tmp.mount
systemd: systemd:
daemon_reload: yes daemon_reload: yes
when: fix_enable_conf is changed masked: no
- name: enable tmp.mount
service:
name: tmp.mount name: tmp.mount
enabled: yes enabled: yes
when: (ansible_distribution in ["CentOS"] and ansible_distribution_major_version in ["8"]) or (ansible_distribution in ["Fedora"] and ansible_distribution_major_version in ["31"]) when: (ansible_distribution in ["CentOS"] and ansible_distribution_major_version in ["8"]) or (ansible_distribution in ["Fedora"] and ansible_distribution_major_version in ["31"])