deploy-base/roles/tmp-mount-fix/tasks/main.yml

21 lines
676 B
YAML
Raw Normal View History

2020-01-02 03:58:44 +00:00
---
- block:
- name: create tmp.mount.d dir
file:
path: /etc/systemd/system/tmp.mount.d/
state: directory
mode: '0755'
register: tmpmnt_directory_state
- name: add drop-in fix
copy:
dest: "/etc/systemd/system/tmp.mount.d/fix-enable.conf"
src: "fix-enable.conf"
register: fix_enable_conf
2020-04-18 00:41:17 +00:00
- name: enable tmp.mount
2020-01-02 03:58:44 +00:00
systemd:
daemon_reload: yes
2020-04-18 00:41:17 +00:00
masked: no
2020-01-02 03:58:44 +00:00
name: tmp.mount
enabled: yes
2020-02-20 04:41:20 +00:00
when: (ansible_distribution in ["CentOS"] and ansible_distribution_major_version in ["8"]) or (ansible_distribution in ["Fedora"] and ansible_distribution_major_version in ["31"])