dj-wasabi / ansible-telegraf

Installing and configuring Telegraf via Ansible for RedHat/Debian/Ubuntu/Windows/Suse.
MIT License
134 stars 116 forks source link

Cannot call plugin multiple times anymore #39

Closed rlex closed 6 years ago

rlex commented 7 years ago

After PR #37, i cannot use multiple instances of same plugin. Example:

telegraf_plugins_extra: 
 - plugin: ping
    config:
      - urls = [
                "host1.int",
                "host2.int"
               ]
      - count = 4
      - ping_interval = 1.0
      - timeout = 1.0
  - plugin: ping
     config:
       - urls = [
                "host1",
                "host2"
               ]
      - count = 4
      - ping_interval = 1.0
      - timeout = 1.0

Role tries to write first instance, then second, creating always-changed state.

dj-wasabi commented 6 years ago

Hi @rlex

Can you check with the version available on github? #40 is merged and might help you?

rlex commented 6 years ago

Yep, works with filename param. Thanks.