apply_patch.yml
344 Bytes
- name: copy the zip file
copy:
src: "{{ patch_zip_location }}{{ patch_zip_file }}"
dest: /root/
- name: apply the patch
shell: './jboss-cli.sh --command="patch apply /root/{{ patch_zip_file }}"'
args:
chdir: "{{ jboss_home_bin }}"
- name: restart jboss
service:
name: "{{ jboss_service_name }}"
state: restarted