tmp.mount - handle masking
This commit is contained in:
parent
a81634c55e
commit
8a543c35aa
1 changed files with 2 additions and 4 deletions
|
@ -11,12 +11,10 @@
|
|||
dest: "/etc/systemd/system/tmp.mount.d/fix-enable.conf"
|
||||
src: "fix-enable.conf"
|
||||
register: fix_enable_conf
|
||||
- name: reload systemd
|
||||
- name: enable tmp.mount
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
when: fix_enable_conf is changed
|
||||
- name: enable tmp.mount
|
||||
service:
|
||||
masked: no
|
||||
name: tmp.mount
|
||||
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"])
|
||||
|
|
Loading…
Reference in a new issue