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 1515 steps :
1616 - name : Checkout repo
1717 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
24+ - name : Check that mariadb works
25+ run : sudo journalctl -xe
26+ - name : Check that mariadb works
27+ run : sudo service mariadb-server restart || true
28+ - name : Check that mariadb works
29+ run : sudo systemctl status mariadb.service
30+ - name : Check that mariadb works
31+ run : sudo journalctl -xe
32+ - name : Fix service
33+ run : cp icpc-wf/ansible/mysqlhandler.yml icpc-wf/ansible/roles/mysql_server/handlers/main.yml
2034 - name : Setup the hosts file
2135 working-directory : ./icpc-wf/ansible
2236 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