#9161 Create ansible playbook to restart failed services on proxy hosts
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by mobrien.

Describe what you would like us to do:


I would like an ansible playbook which could be run against the proxy hosts which would allow for a quick restart of failed services.

It would run something like:

systemctl --failed (Potentially should fail if nothing returned?)
journalctl -lru <unit name> -n 50 (Optional to see log of error)
systemctl restart <unit name>

This would allow rbac_playbook runs with a --limit flag for singular proxy hosts


Metadata Update from @pingou:
- Issue tagged with: dev, high-gain, medium-trouble

3 years ago

Metadata Update from @smooge:
- Issue priority set to: Waiting on Assignee (was: Needs Review)

3 years ago

sorry failed instead of active

I'd rename the file from restart_when_failed.yml to restart_failed_services.yml.

Could you open a pull-request against https://pagure.io/Fedora-Infra/ansible/ ? I have a few more comments and it'll be easier inline in the PR :)

(Note, could you add the journalctl command while at it?)

ok done
add jouranctl + open PR

Login to comment on this ticket.

Metadata
Boards 1
dev Status: Done
Attachments 3
Attached 3 years ago View Comment
Attached 3 years ago View Comment
Attached 3 years ago View Comment