fix: turns legacy command into supported shell

This commit is contained in:
VC
2024-07-05 11:53:28 +02:00
parent 9ec703ee22
commit 1b44cd5bc5
2 changed files with 3 additions and 8 deletions

View File

@@ -72,9 +72,8 @@
- "::1"
- name: scripted version of mysql_secure_installation
command: "{{ item }}"
shell: "{{ item }}"
args:
warn: false
creates: ~/mysql_secure_installation
loop:
- "mysql -e \"DELETE FROM mysql.user WHERE User='';\""

View File

@@ -1,15 +1,11 @@
---
- name: delete squid plugins
shell:
cmd: "rm -f /etc/munin/plugins/squid_*"
warn: false
shell: "rm -f /etc/munin/plugins/squid_*"
notify:
- restart munin-node
- name: delete lxc interfaces plugins
shell:
cmd: "rm -f /etc/munin/plugins/if_*veth* /etc/munin/plugins/if_*fw* /etc/munin/plugins/if_*vmbr*"
warn: false
shell: "rm -f /etc/munin/plugins/if_*veth* /etc/munin/plugins/if_*fw* /etc/munin/plugins/if_*vmbr*"
notify:
- restart munin-node