Commit d71bfa0e authored by Chris Croome's avatar Chris Croome

check mode tweak

parent 85e8fe80
Pipeline #8256 passed with stage
in 26 seconds
......@@ -15,27 +15,36 @@
tags:
- munin
- name: OPCache PHP scripts in place
copy:
src: "/usr/local/src/munin_opcache/src/scripts/{{ item }}"
dest: "/var/www/localhost/{{ item }}"
remote_src: true
mode: 0755
loop:
- munin_opcache.php
- opc.php
tags:
- munin
- name: OPCache PHP tasks when not in check mode
block:
- name: OPCache Munin plugin present
copy:
src: "/usr/local/src/munin_opcache/src/plugins/{{ item }}"
dest: "/usr/local/share/munin/plugins/{{ item }}"
remote_src: true
mode: 0755
loop:
- php_opcache_memoryusage
- php_opcache_restarts
tags:
- munin
- name: OPCache PHP scripts in place
copy:
src: "/usr/local/src/munin_opcache/src/scripts/{{ script }}"
dest: "/var/www/localhost/{{ script }}"
remote_src: true
mode: 0755
loop:
- munin_opcache.php
- opc.php
loop_control:
loop_var: script
tags:
- munin
- name: OPCache Munin plugin present
copy:
src: "/usr/local/src/munin_opcache/src/plugins/{{ plugin }}"
dest: "/usr/local/share/munin/plugins/{{ plugin }}"
remote_src: true
mode: 0755
loop:
- php_opcache_memoryusage
- php_opcache_restarts
loop_control:
loop_var: plugin
tags:
- munin
when: ansible_check_mode == False
...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment