File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 15
15
steps :
16
16
- name : Checkout repo
17
17
uses : actions/checkout@v2
18
- - name : Install ansible lint tools
19
- run : sudo apt update; sudo apt install ansible
18
+ - name : remove package
19
+ run : sudo apt update; sudo apt purge mysql-server
20
+ - name : Install ansible lint tools + SQL server
21
+ run : sudo apt install ansible mariadb-server
22
+ - name : Check that mariadb works
23
+ run : sudo systemctl status mariadb.service || true
24
+ - name : Check that mariadb works
25
+ run : sudo journalctl -xe || true
26
+ - name : Check that mariadb works
27
+ run : sudo service mariadb restart || true
28
+ - name : Check that mariadb works
29
+ run : sudo systemctl status mariadb.service || true
30
+ - name : Check that mariadb works
31
+ run : sudo journalctl -xe || true
32
+ - name : Fix service
33
+ run : cp icpc-wf/ansible/mysqlhandler.yml icpc-wf/ansible/roles/mysql_server/handlers/main.yml
20
34
- name : Setup the hosts file
21
35
working-directory : ./icpc-wf/ansible
22
36
run : sed -i 's/\[${{ matrix.role }}\]/[removed]/g' hosts; printf '\n[${{ matrix.role }}]\ngithub-action\tansible_host=localhost ansible_connection=local' >> hosts
Original file line number Diff line number Diff line change
1
+ ---
2
+ # Define here handlers associated to this role.
3
+
4
+ - name : restart mysql
5
+ command : ls
You can’t perform that action at this time.
0 commit comments