File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
before_install :
9
9
- sudo apt-get update -qq
10
- - sudo apt-get remove --purge mysql*
10
+
11
+ # Remove MySQL. Completely and totally.
12
+ - sudo apt-get remove --purge -s 'mysql*'
11
13
- sudo apt-get autoremove
12
14
- sudo apt-get autoclean
13
- - sudo ls -lah /var/lib
14
15
- sudo rm -rf /var/lib/mysql
16
+ - sudo rm -rf /var/log/mysql
15
17
16
18
install :
17
19
# Install Ansible.
@@ -34,11 +36,11 @@ script:
34
36
&& (echo 'Idempotence test: pass' && exit 0)
35
37
|| (echo 'Idempotence test: fail' && exit 1)
36
38
39
+ # Some MySQL debugging (show all the logs).
37
40
- " sudo ls -lah /var/log"
38
41
- " sudo ls -lah /var/log/mysql"
39
- - " sudo cat /var/log/mysql.err"
40
- - " sudo cat /var/log/mysql.log"
41
42
- " sudo cat /var/log/mysql/error.log"
43
+ - " sudo cat /var/log/mysql/slow.log"
42
44
43
45
# Check to make sure we can connect to MySQL.
44
46
- >
You can’t perform that action at this time.
0 commit comments