Guest User

Untitled

a guest
Jan 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. ---
  2. - name: Publish the app to Bluemix using Ansible
  3. hosts: localhost
  4. connection: local
  5. vars:
  6. username: "{{ lookup('env','BLUEMIX_USER') }}"
  7. password: "{{ lookup('env','BLUEMIX_PASS') }}"
  8. org: "{{ lookup('env','BLUEMIX_ORGANIZATION') }}"
  9. space: "{{ lookup('env','BLUEMIX_SPACE') }}"
  10. tasks:
  11. - name: CF Login
  12. shell: "cf login -a https://api.w3ibm.bluemix.net -u {{ username }} -p {{ password }} -o {{ org }} -s {{ space }}"
  13. no_log: True
  14.  
  15. - name: CF Push downloaded build
  16. shell: "cf push -f deploy/manifest.yml -u none"
  17.  
  18. applications:
  19. - name: test
  20. path: name-of-jar-file.jar
  21. instances: 1
  22. memory: 4G
  23. buildpack: java_buildpack
  24. no-route: true
  25. health-check-type: process
  26. services:
  27. - Database_name
Add Comment
Please, Sign In to add comment