---
- name: "Create remote files output configuration file
    /etc/rsyslog.d/output-files-{{ __rsyslog_output.name }}"
  vars:
    __rsyslog_packages: "{{ __rsyslog_remote_files_output_packages }}"
    __rsyslog_rules:
      - name: "output-files-{{ __rsyslog_output.name }}"
        type: "output"
        state: "{{ __rsyslog_output.state | d('present') }}"
        sections:
          - options: "{{ lookup('template', 'output_remote_files.j2') }}"
  include_tasks:
    file: "{{ role_path }}/tasks/deploy.yml"
