main.yml 1.04 KB
Newer Older
1 2 3 4
---
# file: roles/cactus_service/tasks/main.yml

- name: download cactus service from nexus
ALEXANDER PAUL HASKELL's avatar
ALEXANDER PAUL HASKELL committed
5
  maven_artifact: group_id="edu.psu.ses.libraries" artifact_id="cactus-web" version={{ cactus_srv_version }} extension="war" repository_url=https://nexus.ci.psu.edu/repository/public/ dest=/tmp/cactus-web.war
6 7 8 9 10 11 12 13

- name: copy the cacus jboss cli scripts to the remote host's deployment directory
  copy: src="{{ item }}" dest=/tmp
  with_items:
    - cactus_ds.cli
    - cactus_deploy.cli

- name: install the data source
14
  shell: chdir=/tmp {{ ansible_local.build_vars.wildfly.wildfly_prog_directory }}/jboss-cli.sh --file="{{ item }}"
15 16 17 18
  with_items:
    - cactus_ds.cli

- name: update the data source password
19
  shell: chdir=/tmp {{ ansible_local.build_vars.wildfly.wildfly_prog_directory }}/jboss-cli.sh -c --commands="data-source --name=cactus-ds --password={{ cactus_ds_password }},reload"
20 21

- name: install the service
22
  shell: chdir=/tmp {{ ansible_local.build_vars.wildfly.wildfly_prog_directory }}/jboss-cli.sh --file="{{ item }}"
23 24
  with_items:
    - cactus_deploy.cli