neutron/roles/fetch_journal_log/tasks/main.yaml
Slawek Kaplonski b6550e568d Remove "msg" from tasks in ansible roles
It looks that 'msg' isn't valid attribute for a Task and
it cause problem with jobs which uses this role.

Change-Id: I43d09e645f60526d251703ce7ee91c29281f1eeb
Closes-Bug: #1820993
2019-03-20 13:46:17 +01:00

23 lines
533 B
YAML

- name: Ensure {{ journal_log_path }} exists
become: yes
file:
path: "{{ journal_log_path }}"
state: directory
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
mode: 0775
- name: Store journal logs in {{ journal_log_file_name }}
become: yes
shell:
cmd: |
/bin/journalctl -a > {{ journal_log_file_name }}
- name: Set journal.log file permissions
become: yes
file:
path: '{{ journal_log_file_name }}'
owner: '{{ ansible_user }}'
group: '{{ ansible_user }}'
mode: 0644