Ansible roles by Evolix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
848 B

  1. ---
  2. - name: Choose packages (Oracle)
  3. set_fact:
  4. multi: "multi_"
  5. when: memcached_instance_name !=""
  6. - name: is Munin present ?
  7. stat:
  8. path: /etc/munin/plugin-conf.d/munin-node
  9. check_mode: no
  10. register: munin_node_plugins_config
  11. tags:
  12. - memcached
  13. - munin
  14. - block:
  15. - name: Install munin-plugins-extra and libcache-memcached-perl for Munin
  16. apt:
  17. name:
  18. - 'munin-plugins-extra'
  19. - 'libcache-memcached-perl'
  20. state: present
  21. - name: Enable core Munin plugins
  22. file:
  23. src: '/usr/share/munin/plugins/memcached_'
  24. dest: /etc/munin/plugins/{{ multi }}{{ item }}
  25. state: link
  26. with_items:
  27. - memcached_bytes
  28. - memcached_counters
  29. - memcached_rates
  30. notify: restart munin-node
  31. when: munin_node_plugins_config.stat.exists
  32. tags:
  33. - memcached
  34. - munin