diff options
author | 2019-05-09 13:05:16 +0000 | |
---|---|---|
committer | 2019-05-09 13:05:16 +0000 | |
commit | 268adb54e69faf0287efe99a7dcb67f2db12e446 (patch) | |
tree | 5d21d116d1c80571101a93bd771e831f9c5671f9 /docker/ansible/roles/config_files/tasks/snmp_agent.yml | |
parent | 0117ed70f638bd319572a36bdec4df44afaba0c6 (diff) | |
parent | b742c9d191db1cfd5959d692771b047565631b85 (diff) |
Merge "ansible: add variable to select collectd container"
Diffstat (limited to 'docker/ansible/roles/config_files/tasks/snmp_agent.yml')
-rw-r--r-- | docker/ansible/roles/config_files/tasks/snmp_agent.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docker/ansible/roles/config_files/tasks/snmp_agent.yml b/docker/ansible/roles/config_files/tasks/snmp_agent.yml index 603dc122..c72aee48 100644 --- a/docker/ansible/roles/config_files/tasks/snmp_agent.yml +++ b/docker/ansible/roles/config_files/tasks/snmp_agent.yml @@ -1,4 +1,4 @@ -#Copyright 2018 OPNFV and Intel Corporation +#Copyright 2018-2019 OPNFV and Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,5 +17,14 @@ template: src: snmp_agent.conf.j2 dest: "{{ config_file_dir }}/snmp_agent.conf" + when: flavor|default('stable')|string == 'stable' + tags: + - snmp + +- name: enable snmp agent for master container + template: + src: master/snmp_agent.conf.j2 + dest: "{{ config_file_dir }}/snmp_agent.conf" + when: flavor|default('stable')|string != 'stable' tags: - snmp |