forked from sitya/ansible-role-shibboleth_sp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.yml
48 lines (36 loc) · 1002 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
- hosts: all
become: yes
gather_facts: yes
pre_tasks:
- name: Update apt cache
apt: upgrade=yes update_cache=yes
when: ansible_os_family == 'Debian'
tasks:
- include_vars: defaults/main.yml
- include_vars: test_vars.yml
- include: tasks/main.yml
- name: restart httpd
sudo: yes
when: ansible_os_family == 'Debian'
service: name=apache2
state=restarted
- name: restart httpd
sudo: yes
when: ansible_os_family == 'RedHat'
service: name=httpd
state=restarted
- name: Check to see if apache is running
uri:
url: http://127.0.0.1:80/
method: GET
status_code: 200, 403
- name: Check to see if apache shib2 module is loaded
uri:
url: https://127.0.0.1:443/Shibboleth.sso/Status
method: GET
status_code: 200
validate_certs: no
when: ansible_os_family == 'Debian'
handlers:
- include: handlers/main.yml