Skip to content

Commit 346a17a

Browse files
authored
Merge pull request geerlingguy#133 from aljazceru/master
using file module instead of rm
2 parents 6526b44 + 054a866 commit 346a17a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/setup-Debian.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
when: mysql_installed.stat.exists == false
2323

2424
- name: Delete innodb log files created by apt package after initial install.
25-
shell: "rm -f {{ mysql_datadir }}/ib_logfile[01]"
25+
file: path={{ mysql_datadir }}/{{item}} state=absent
26+
with_items:
27+
- "ib_logfile0"
28+
- "ib_logfile1"
2629
when: mysql_installed.stat.exists == false

0 commit comments

Comments
 (0)