Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty forward rule file created #43

Open
jlownie opened this issue May 16, 2023 · 0 comments
Open

Empty forward rule file created #43

jlownie opened this issue May 16, 2023 · 0 comments

Comments

@jlownie
Copy link

jlownie commented May 16, 2023

Empty forward rule file created

I set rsyslog_deploy_default_config: no and got this error:

TASK [robertdebock.rsyslog : Configuring rsyslog forward rule] *****************
fatal: [myhostname]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'rsyslog_forward_rule_name' is undefined\n\nThe error appears to be in '/runner/requirements_roles/robertdebock.rsyslog/tasks/main.yml': line 41, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Configuring rsyslog forward rule\n  ^ here\n"}

I then set rsyslog_forward_rule_name: forwarding and it generated this file:

#
# Ansible managed
#

# ### begin forwarding rule ###
# The statement between the begin ... end define a SINGLE forwarding
# rule. They belong together, do NOT split them. If you create multiple
# forwarding rules, duplicate the whole block!
# Remote Logging (we use TCP for reliable delivery)
#

# ### end of the forwarding rule ###

I don't understand the purpose of this so I thought I'd ask if the role is behaving as intended?

Playbook

---
- hosts: "all"
  roles:
    - role: robertdebock.rsyslog
      vars:
        rsyslog_deploy_default_config: no
        rsyslog_forward_rule_name: forwarding

Output

As described above.

Environment

  • Control node OS: Debian 11
  • Control node Ansible version: 2.12.5.post0
  • Managed node OS: Ubuntu 18.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant