home-server/roles/sockets/tasks/main.yml

23 lines
736 B
YAML

---
# The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: create a directory for shared sockets
copy:
content: |
#Type Path Mode UID GID Age Argument
d /run/shared_sockets 1777 root root - -
dest: /etc/tmpfiles.d/shared_sockets.conf
mode: 0644
notify:
- create tmpfiles
### LOCAL COMMIT ⇒ ###
- name: commit local changes
include_role: name=etckeeper.inc allow_duplicates=true tasks_from=local.yml
vars:
msg: Shared sockets
### ⇐ LOCAL COMMIT ###
- meta: flush_handlers