From c38bdcdbd4e99ad532d535ce307564c836a7c04b Mon Sep 17 00:00:00 2001 From: s3lph <account-gitlab-ideynizv@kernelpanic.lol> Date: Thu, 17 Dec 2020 02:31:09 +0100 Subject: [PATCH] Fix anope template errors --- roles/anope/defaults/main.yml | 1 + roles/anope/templates/etc/anope/services.conf.j2 | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/roles/anope/defaults/main.yml b/roles/anope/defaults/main.yml index 5728e30..4334aa4 100644 --- a/roles/anope/defaults/main.yml +++ b/roles/anope/defaults/main.yml @@ -123,6 +123,7 @@ anope_opertypes: anope_opers: {} +anope_database_flatfile_filename: anope.db anope_database_flatfile_keepbackups: 3 anope_database_flatfile_nobackupok: no anope_database_flatfile_fork: no diff --git a/roles/anope/templates/etc/anope/services.conf.j2 b/roles/anope/templates/etc/anope/services.conf.j2 index ab569de..8ec2eeb 100644 --- a/roles/anope/templates/etc/anope/services.conf.j2 +++ b/roles/anope/templates/etc/anope/services.conf.j2 @@ -96,10 +96,10 @@ log opertype { name = "{{ name }}" - commands = "{{ log.commands | join(' ') }}" - privs = "{{ log.privs | join(' ') }}" - {% if 'inherits' in opertype %}inherits = "{{ log.inherits | join(', ') }}"{% endif %} - {% if 'modes' in opertype %}modes = "{{ log.modes }}"{% endif %} + commands = "{{ opertype.commands | join(' ') }}" + privs = "{{ opertype.privs | join(' ') }}" + {% if 'inherits' in opertype %}inherits = "{{ opertype.inherits | join(', ') }}"{% endif %} + {% if 'modes' in opertype %}modes = "{{ opertype.modes }}"{% endif %} } {% endfor %}