File tree Expand file tree Collapse file tree 3 files changed +35
-12
lines changed Expand file tree Collapse file tree 3 files changed +35
-12
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ os: linux
44jobs :
55 include :
66 - dist : Focal
7- - dist : Bionic
87
98notifications :
109 email :
@@ -22,5 +21,4 @@ install:
2221 - ansible-playbook travisbook.yml
2322
2423script :
25- - ansible-lint travisbook.yml || true
26-
24+ - ./.travis/verify.sh
Original file line number Diff line number Diff line change 1+
2+ #! /bin/bash
3+ set -o errexit
4+
5+ verify_syntax (){
6+ ansible-lint travisbook.yml || true
7+ }
8+
9+ verify_lsws (){
10+ curl -sIk http://localhost:7080/ | grep -i LiteSpeed
11+ if [ ${?} = 0 ]; then
12+ echo ' [O] https://localhost:7080/'
13+ else
14+ echo ' [X] https://localhost:7080/'
15+ exit 1
16+ fi
17+ }
18+
19+ verify_wordpress (){
20+ curl -siL http://localhost/ | grep -i WordPress
21+ if [ ${?} = 0 ]; then
22+ echo ' [O] https://localhost/'
23+ else
24+ echo ' [X] https://localhost/'
25+ exit 1
26+ fi
27+ }
28+
29+ main (){
30+ verify_syntax
31+ verify_lsws
32+ verify_wordpress
33+ }
Original file line number Diff line number Diff line change 22- name : Install unzip
33 raw : test -e /usr/bin/unzip || apt install -y unzip
44 changed_when : false
5- tags : [ system ]
6-
7- - name : Make sure pymysql is present
8- become : true
9- pip :
10- name : " {{ item }}"
11- state : present
12- with_items :
13- - pymysql
5+ tags : [ system ]
You can’t perform that action at this time.
0 commit comments