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

@ -47,6 +47,13 @@ Including an example of how to use your role (for instance, with variables passe
roles: roles:
- ams_0013_8.0.9.0 - 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 License
------- -------

View File

@ -4,10 +4,16 @@
file: file:
path: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.8.0 path: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.8.0
state: absent state: absent
notify:
- stopALL
- startALL
- name: Remove a directory /opt/rola/ams/linux/webclient-services/SharedComponents-8.0.8.0/ if it does exist - name: Remove a directory /opt/rola/ams/linux/webclient-services/SharedComponents-8.0.8.0/ if it does exist
file: file:
path: /opt/rola/ams/linux/webclient-services/SharedComponents-8.0.8.0/ path: /opt/rola/ams/linux/webclient-services/SharedComponents-8.0.8.0/
state: absent 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 - 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: synchronize:
src: /sw/AMS/WEB/Lieferung_0013_8.0.9.0_AMS_BBTA1_HF2_BV-Schnittstelle/linux/webclient-services/rsAmsBvService-8.0.9.0 src: /sw/AMS/WEB/Lieferung_0013_8.0.9.0_AMS_BBTA1_HF2_BV-Schnittstelle/linux/webclient-services/rsAmsBvService-8.0.9.0
@ -25,6 +31,9 @@
owner: jetty owner: jetty
group: dba group: dba
mode: '0644' mode: '0644'
notify:
- stopALL
- startALL
- name: Template file tech.database.yaml.j2 with owner and permissions - name: Template file tech.database.yaml.j2 with owner and permissions
template: template:
src: ./templates/tech.database.yaml.j2 src: ./templates/tech.database.yaml.j2
@ -32,6 +41,9 @@
owner: jetty owner: jetty
group: dba group: dba
mode: '0644' mode: '0644'
notify:
- stopALL
- startALL
- name: Copy file psc.sh with owner and permissions - name: Copy file psc.sh with owner and permissions
copy: copy:
src: ./files/psc.sh src: ./files/psc.sh

View File

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

View File

@ -1,5 +1,23 @@
--- ---
- hosts: localhost - name: test site
remote_user: root hosts: development
roles: become: yes
- default_role
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

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