diff --git a/roles/ams_0013_8.0.9.0/README.md b/roles/ams_0013_8.0.9.0/README.md index eb003e4..1c7e523 100644 --- a/roles/ams_0013_8.0.9.0/README.md +++ b/roles/ams_0013_8.0.9.0/README.md @@ -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 ------- diff --git a/roles/ams_0013_8.0.9.0/tasks/main.yml b/roles/ams_0013_8.0.9.0/tasks/main.yml index e4bf843..48a8e3d 100644 --- a/roles/ams_0013_8.0.9.0/tasks/main.yml +++ b/roles/ams_0013_8.0.9.0/tasks/main.yml @@ -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 diff --git a/roles/ams_0013_8.0.9.0/tests/inventory b/roles/ams_0013_8.0.9.0/tests/inventory deleted file mode 100644 index 878877b..0000000 --- a/roles/ams_0013_8.0.9.0/tests/inventory +++ /dev/null @@ -1,2 +0,0 @@ -localhost - diff --git a/roles/ams_0013_8.0.9.0/tests/test.yml b/roles/ams_0013_8.0.9.0/tests/test.yml index af33406..c472083 100644 --- a/roles/ams_0013_8.0.9.0/tests/test.yml +++ b/roles/ams_0013_8.0.9.0/tests/test.yml @@ -1,5 +1,23 @@ --- -- hosts: localhost - remote_user: root - roles: - - default_role \ No newline at end of file + - 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 diff --git a/site.retry b/site.retry index 1f69642..777c1c1 100644 --- a/site.retry +++ b/site.retry @@ -1 +1 @@ -80.155.205.161 +80.155.206.72 diff --git a/site.yml b/site.yml index c3a8a6e..0eb719f 100644 --- a/site.yml +++ b/site.yml @@ -17,6 +17,25 @@ #- ams_sso #- ams_0008_8.0.8.0_AdminServer - ams_0013_8.0.9.0 + + handlers: + - name: stopALL + command: ./stopALL + args: + chdir: "/home/jetty" + async: 120 + poll: 5 + + - name: startALL + command: ./startALL + args: + chdir: "/home/jetty" + async: 120 + poll: 5 + + + + ##########################################################