diff options
author | Gordon Kelly <gordon.kelly@intel.com> | 2018-03-02 15:17:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-02 15:17:22 +0000 |
commit | 34a8da211410331108fe0d7f9f4dbc2fdb51e99a (patch) | |
tree | d26f81f181c37b538e2d332fdf4593a718353c94 /docker/ansible | |
parent | 4b3a216b75d33dbd9c78b09a790d85a2785d451d (diff) | |
parent | ae7fd7fb552c8bb44860e7787910365de824c070 (diff) |
Merge "ansible: add functionality to copy custom config files to target node"
Diffstat (limited to 'docker/ansible')
-rw-r--r-- | docker/ansible/roles/config_files/tasks/main.yml | 11 | ||||
-rw-r--r-- | docker/ansible/roles/config_files/vars/main.yml | 3 |
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: "" |