Changed ansible_db_template to ansible_config_template
As the template is for the aide.conf(5) file I found that the variable name 'ansible_config_template' is a better fit than 'ansible_db_template'. Signed-off-by: Joerg Kastning <joerg@redhat.com>
This commit is contained in:
committed by
Richard Megginson
parent
3bca54f29b
commit
8ce6fe0da5
@@ -24,7 +24,7 @@ only.
|
||||
|
||||
## Role Variables
|
||||
|
||||
### aide_db_template
|
||||
### aide_config_template
|
||||
|
||||
This variable takes a string to specify a path where the custom template for aide.conf is located.
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
# This file also serves as a documentation for such a variables.
|
||||
|
||||
# Path to template file
|
||||
aide_db_template: null
|
||||
aide_config_template: null
|
||||
|
||||
# Examples of role input variables:
|
||||
aide_db_fetch_dir: files
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
tasks:
|
||||
- name: Include role aide
|
||||
vars:
|
||||
aide_db_template: /tmp/aide-custom.conf.j2
|
||||
aide_config_template: /tmp/aide-custom.conf.j2
|
||||
aide_db_fetch_dir: files
|
||||
aide_init: true
|
||||
aide_fetch_db: true
|
||||
|
||||
+2
-2
@@ -20,10 +20,10 @@
|
||||
|
||||
- name: Generate "/etc/{{ __aide_config }}"
|
||||
ansible.builtin.template:
|
||||
src: "{{ aide_db_template }}"
|
||||
src: "{{ aide_config_template }}"
|
||||
dest: "/etc/{{ __aide_config }}"
|
||||
mode: "0400"
|
||||
when: aide_db_template is not none
|
||||
when: aide_config_template is not none
|
||||
|
||||
# - name: Print Header
|
||||
# ansible.builtin.command: head /etc/aide.conf || true
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
roles:
|
||||
- role: linux-system-roles.aide
|
||||
vars:
|
||||
aide_db_template: files/aide-custom.conf.j2
|
||||
aide_config_template: files/aide-custom.conf.j2
|
||||
aide_install: true
|
||||
aide_init: true
|
||||
tasks:
|
||||
|
||||
Reference in New Issue
Block a user