aboutsummaryrefslogtreecommitdiffstats
path: root/docker/ansible/roles/config_files
diff options
context:
space:
mode:
Diffstat (limited to 'docker/ansible/roles/config_files')
-rw-r--r--docker/ansible/roles/config_files/tasks/main.yml11
-rw-r--r--docker/ansible/roles/config_files/vars/main.yml3
2 files changed, 14 insertions, 0 deletions
diff --git a/docker/ansible/roles/config_files/tasks/main.yml b/docker/ansible/roles/config_files/tasks/main.yml
index 2f0938c0..27362e3b 100644
--- a/docker/ansible/roles/config_files/tasks/main.yml
+++ b/docker/ansible/roles/config_files/tasks/main.yml
@@ -70,3 +70,14 @@
- name: enable virt plugin
import_tasks: virt.yml
+
+- name: copy additional configuration files to target system
+ template:
+ src: "{{ item }}"
+ dest: "{{ config_file_dir }}/{{ item | basename | regex_replace('\\.j2','') }}"
+ tags:
+ - always
+ - copy_additional_configs
+ with_fileglob:
+ - "{{ additional_configs_path }}"
+
diff --git a/docker/ansible/roles/config_files/vars/main.yml b/docker/ansible/roles/config_files/vars/main.yml
index 3677422a..05fb9e7f 100644
--- a/docker/ansible/roles/config_files/vars/main.yml
+++ b/docker/ansible/roles/config_files/vars/main.yml
@@ -51,3 +51,6 @@ syslog_log_level: info
rrdtool_db_dir: "/var/lib/collectd/rrd"
cache_flush: 120
write_per_sec: 50
+
+#additional configuration files path
+additional_configs_path: ""