daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Dec 14th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- ## epagosDeploy/tasks/applyModules.yaml
  2.  
  3. - include_vars: common.yaml
  4. - include_vars: modules.yaml
  5.  
  6.   #- name: Making a backup of the modules
  7.   # command: /usr/bin/tar -cJvf  {{ remoteBackupPath }}/{{ dateToday }}-modules.bkp.tar.bz2 {{ jbossModulesPath }}
  8.  
  9.  
  10. - name: Downloading epagos-solr-connector and epagos-i18n
  11.   maven_artifact:
  12.     artifact_id: "{{ item.artifact }}"
  13.     group_id: "{{ item.group }}"
  14.     extension: jar
  15.     version: "{{ earVersion }}"
  16.     timeout: 60
  17.     dest: "{{ remotePathDownload }}/deploy-{{ dateToday }}/modules/{{ item.artifact }}.jar"
  18.     repository_url: "{{ urlNexus }}"
  19.     validate_certs: no
  20.   with_items: "{{ moduleOwnVersion }}"
  21.  
  22. - name: Downloading epagos-mensajes and epagos-configuracion-common
  23.   maven_artifact:
  24.     artifact_id: "{{ item.artifact }}"
  25.     group_id: "{{ item.group }}"
  26.     extension: jar
  27.     version: "{{ earVersion }}"
  28.     timeout: 60
  29.     dest: "{{ remotePathDownload }}/deploy-{{ dateToday }}/modules/{{ item.artifact }}.jar"
  30.     repository_url: "{{ urlNexus }}"
  31.     validate_certs: no
  32.   with_items: "{{ moduleEarVersion }}"
  33.  
  34. - name: Applying each module
  35.   copy:
  36.     remote_src: True
  37.     src: "{{ remotePathDownload }}/deploy-{{ dateToday}}/modules/{{ item.module }}.jar"
  38.     dest: "{{ item.path }}/{{ item.module }}.jar"
  39.     force: yes
  40.     owner: jboss
  41.     group: jboss
  42.   with_items: "{{ eachRemoteModulePath }}"
  43.  
  44. - name: Restart JBoss
  45.   systemd:
  46.     name: jboss
  47.     state: restarted
  48.   when: inventory_hostname in groups['dmzs'] or inventory_hostname in groups['backoffices'] or inventory_hostname in groups['apps']
  49.  
  50.  
  51. ## eof
RAW Paste Data
Top