Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ## epagosDeploy/tasks/applyModules.yaml
- - include_vars: common.yaml
- - include_vars: modules.yaml
- #- name: Making a backup of the modules
- # command: /usr/bin/tar -cJvf {{ remoteBackupPath }}/{{ dateToday }}-modules.bkp.tar.bz2 {{ jbossModulesPath }}
- - name: Downloading epagos-solr-connector and epagos-i18n
- maven_artifact:
- artifact_id: "{{ item.artifact }}"
- group_id: "{{ item.group }}"
- extension: jar
- version: "{{ earVersion }}"
- timeout: 60
- dest: "{{ remotePathDownload }}/deploy-{{ dateToday }}/modules/{{ item.artifact }}.jar"
- repository_url: "{{ urlNexus }}"
- validate_certs: no
- with_items: "{{ moduleOwnVersion }}"
- - name: Downloading epagos-mensajes and epagos-configuracion-common
- maven_artifact:
- artifact_id: "{{ item.artifact }}"
- group_id: "{{ item.group }}"
- extension: jar
- version: "{{ earVersion }}"
- timeout: 60
- dest: "{{ remotePathDownload }}/deploy-{{ dateToday }}/modules/{{ item.artifact }}.jar"
- repository_url: "{{ urlNexus }}"
- validate_certs: no
- with_items: "{{ moduleEarVersion }}"
- - name: Applying each module
- copy:
- remote_src: True
- src: "{{ remotePathDownload }}/deploy-{{ dateToday}}/modules/{{ item.module }}.jar"
- dest: "{{ item.path }}/{{ item.module }}.jar"
- force: yes
- owner: jboss
- group: jboss
- with_items: "{{ eachRemoteModulePath }}"
- - name: Restart JBoss
- systemd:
- name: jboss
- state: restarted
- when: inventory_hostname in groups['dmzs'] or inventory_hostname in groups['backoffices'] or inventory_hostname in groups['apps']
- ## eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement