An Ansible role for aggregating logs from different nodes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ansible-role-collect-logs/roles/collect_logs/molecule/sova/prepare.yml

17 lines
432 B

---
- name: Prepare
hosts: all
tasks:
- name: Prepare the console file directory
file:
path: '{{ ansible_user_dir }}/workspace/logs/'
state: directory
mode: 0755
- name: Create a sample console file
copy:
content: |
No valid host was found. There are not enough hosts
dest: '{{ ansible_user_dir }}/workspace/logs/quickstart_install.log'
mode: 0644