Skip to content

Commit 60cdefc

Browse files
committed
action already has mysql installed
1 parent 712f3c8 commit 60cdefc

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/ansible-deployments.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,22 @@ jobs:
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 || 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
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

icpc-wf/ansible/mysqlhandler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
# Define here handlers associated to this role.
3+
4+
- name: restart mysql
5+
command: ls

0 commit comments

Comments
 (0)