Neue TestSeitenaufruf und handler eingebaut

This commit is contained in:
Marcus Gillitzer 2020-06-16 17:22:03 +02:00
commit 61cebe64a5
6 changed files with 57 additions and 9 deletions

View File

@ -46,6 +46,13 @@ Including an example of how to use your role (for instance, with variables passe
- hosts: servers
roles:
- ams_0013_8.0.9.0
Zu testen ob die Installation geklappt hat, kann die /test/test.yml aufgerufen werden.
Folgender Aufruf:
ansible-playbook -i development/hosts -u euer_usernamen roles/ams_0013_8.0.9.0/tests/test.yml
License
-------

View File

@ -4,10 +4,16 @@
file:
path: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.8.0
state: absent
notify:
- stopALL
- startALL
- name: Remove a directory /opt/rola/ams/linux/webclient-services/SharedComponents-8.0.8.0/ if it does exist
file:
path: /opt/rola/ams/linux/webclient-services/SharedComponents-8.0.8.0/
state: absent
notify:
- stopALL
- startALL
- name: synchronize Folder remote from /sw/AMS/WEB/Lieferung_0013_8.0.9.0_AMS_BBTA1_HF2_BV-Schnittstelle/linux/webclient-services/rsAmsBvService-8.0.9.0 to /opt/rola/ams/linux/webclient-services
synchronize:
src: /sw/AMS/WEB/Lieferung_0013_8.0.9.0_AMS_BBTA1_HF2_BV-Schnittstelle/linux/webclient-services/rsAmsBvService-8.0.9.0
@ -25,13 +31,19 @@
owner: jetty
group: dba
mode: '0644'
notify:
- stopALL
- startALL
- name: Template file tech.database.yaml.j2 with owner and permissions
template:
src: ./templates/tech.database.yaml.j2
dest: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.9.0/frameworkconfig/prefs/tech.database.yaml
owner: jetty
group: dba
mode: '0644'
mode: '0644'
notify:
- stopALL
- startALL
- name: Copy file psc.sh with owner and permissions
copy:
src: ./files/psc.sh

View File

@ -1,2 +0,0 @@
localhost

View File

@ -1,5 +1,23 @@
---
- hosts: localhost
remote_user: root
roles:
- default_role
- name: test site
hosts: development
become: yes
tasks:
- name: check website AppServer
uri:
url: "http://{{ ansible_facts['default_ipv4']['address'] }}:8080/appserver/dispatcher/hello"
- name: check website AppServerAdmin
uri:
url: "http://{{ ansible_facts['default_ipv4']['address'] }}:8181/appserver/dispatcher/hello"
- name: check website CV-SNIT
uri:
url: "http://{{ ansible_facts['default_ipv4']['address'] }}:7272/imp20/htmlclient"
status_code: 403
- name: check website BV-SNIT
uri:
url: "http://{{ ansible_facts['default_ipv4']['address'] }}:7373/bv/ws"
status_code: 405

View File

@ -1 +1 @@
80.155.205.161
80.155.206.72

View File

@ -20,7 +20,7 @@
#- ams_0013_8.0.9.0
- ams_0013_8.0.9.0
handlers:
- name: stopALL
command: ./stopALL
@ -34,6 +34,19 @@
module: wait_for
path: /opt/rola/ams/linux/Appserver/service/rsWebserviceAppserver.status
state: absent
async: 120
poll: 5
- name: startALL
command: ./startALL
args:
chdir: "/home/jetty"
async: 120
poll: 5
##########################################################