33 lines
603 B
YAML
33 lines
603 B
YAML
# Deploy a ruby site
|
|
# item:
|
|
# name: Seite
|
|
# git:
|
|
# repo: https://git_repository
|
|
# dest: destination on server
|
|
---
|
|
|
|
- debug:
|
|
msg: "deploy ruby site: {{site.name}}"
|
|
|
|
- command: echo "$PATH"
|
|
register: out
|
|
changed_when: false
|
|
- debug: msg="{{ out.stdout }}"
|
|
|
|
|
|
- name: "cloning git repository from {{site.git.repo}}"
|
|
git:
|
|
repo: "{{site.git.repo}}"
|
|
dest: "{{site.dest}}"
|
|
|
|
|
|
- name: ruby init
|
|
command: 'echo "$PATH"'
|
|
changed_when: false
|
|
args:
|
|
chdir: "{{site.dest}}"
|
|
environment:
|
|
PATH: "{{ rvm1_install_path }}/wrappers/default:{{ ansible_env.PATH }}"
|
|
register: out
|
|
|