Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Publish the app to Bluemix using Ansible
- hosts: localhost
- connection: local
- vars:
- username: "{{ lookup('env','BLUEMIX_USER') }}"
- password: "{{ lookup('env','BLUEMIX_PASS') }}"
- org: "{{ lookup('env','BLUEMIX_ORGANIZATION') }}"
- space: "{{ lookup('env','BLUEMIX_SPACE') }}"
- tasks:
- - name: CF Login
- shell: "cf login -a https://api.w3ibm.bluemix.net -u {{ username }} -p {{ password }} -o {{ org }} -s {{ space }}"
- no_log: True
- - name: CF Push downloaded build
- shell: "cf push -f deploy/manifest.yml -u none"
- applications:
- - name: test
- path: name-of-jar-file.jar
- instances: 1
- memory: 4G
- buildpack: java_buildpack
- no-route: true
- health-check-type: process
- services:
- - Database_name
Add Comment
Please, Sign In to add comment