This posts describes how to create a simple Ansible task on how to setup PaperTrail on Ubuntu.
It’s a follow up to a previous
blog
describing an Ansible Playbook to setup an HAProxy system. This Ansible task
can
be included in the HAProxy playbook as well as any other playbooks with something
like this:
---
PLAYBOOK: Install papertrail on Ubuntu
---
- name: scout
hosts: all
user: <user-with-sudo>
sudo: True
tasks:
- include: tasks/papertrail.yml
Next, we define the task
that includes installing the dependencies
rsyslog and libssl-dev. Also we copy a specific rsyslog configuration
for papertrail.