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"
|
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"])
|
||||||
|
|
Loading…
Reference in a new issue