ansible-infra/roles/deploy_systemd_journal_config/tasks/main.yaml

18 lines
488 B
YAML

- name: Create 'journald.conf.d' directory if it does not exist
ansible.builtin.file:
path: "/etc/systemd/journald.conf.d"
state: directory
mode: '0644'
owner: root
group: root
become: true
- name: make sure the custom configuration file is deployed
ansible.builtin.copy:
src: "10-ccchh.conf"
dest: "/etc/systemd/journald.conf.d/10-ccchh.conf"
mode: "0644"
owner: root
group: root
become: true
notify: Restart `systemd-journald.service`