robertdebock.sosreport
Ansible Role sosreport
This guide helps you install, run, and collect sosreports from your systems.
GitHub | GitLab | Downloads | Version |
---|---|---|---|
Example Playbook
Here's a simple example from molecule/default/converge.yml
that is tested whenever the code is updated.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: robertdebock.sosreport
Make sure the machine is set up first. In Continuous Integration (CI), this is done with molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
serial: 30%
roles:
- role: robertdebock.bootstrap
For more details, see a full explanation and example on how to use these roles.
Role Variables
Default variable values are in defaults/main.yml
:
---
# defaults file for sosreport
# Where to store the sosreport on the managed node
sosreport_remote_location: /tmp/sosreport
# Where to store the sosreport(s) on the controller
sosreport_local_location: /tmp/sosreports
Requirements
- pip packages listed in requirements.txt.
Used Roles
Some roles are needed to prepare a system. You can use other methods to prepare your system.
Requirement | GitHub | GitLab |
---|---|---|
robertdebock.bootstrap |
Context
This role works with many other compatible roles. Check out the documentation for these roles for more information.
Here's a list of related roles:
Compatibility
This role has been tested with the following container images:
container | tags |
---|---|
EL | 9 |
Fedora | all |
You need at least Ansible version 2.12. Tests have been done on:
- The previous version.
- The current version.
- The development version.
If you find issues, please report them on GitHub.
License
This project is licensed under the Apache-2.0.
Author Information
Created by robertdebock.
Consider sponsoring me.
Install, run and collect sosreports from your systems.
ansible-galaxy install robertdebock.sosreport