This commit is contained in:
2022-06-13 17:37:23 +02:00
parent 53074fa930
commit 3ecd0e3644
7 changed files with 64 additions and 1 deletions

View File

@ -60,6 +60,36 @@
tags:
- systemd-config
- name: (basic.yml) Ensure directory '/etc/systemd/journald.conf.d' exists
file:
path: /etc/systemd/journald.conf.d
state: directory
mode: 0755
group: root
owner: root
when:
- copy_plain_files_journald is defined
- copy_plain_files_journald|length > 0
tags:
- systemd-config
- name: (basic.yml) Ensure files /etc/systemd/journald.conf.d/*.conf exists
copy:
src: '{{ item.src_path }}'
dest: '{{ item.dest_path }}'
owner: root
group: root
mode: '0644'
loop: "{{ copy_plain_files_journald }}"
loop_control:
label: 'dest: {{ item.name }}'
notify: "Restart systemd-journald"
when:
- copy_plain_files_journald is defined
- copy_plain_files_journald|length > 0
tags:
- systemd-config
# ----------
# kernel parameter