ruby site

This commit is contained in:
Andreas Stephanides
2017-11-17 23:02:45 +01:00
parent 5c512f480b
commit c929c1974f
11 changed files with 107 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
- name: "deploying ruby sites"
include_tasks: site.yml
with_items: "{{ruby_sites}}"

View File

@@ -0,0 +1,26 @@
---
- debug:
msg: "Seite: {{item.name}}"
- command: whoami
register: whoami
changed_when: false
- debug: msg="{{ whoami.stdout }}"
- name: "DIR"
file:
path: "/srv/intern"
state: directory
owner: "ruby"
group: "ruby"
- name: Clone GIT
become_user: "ruby"
git:
repo: "{{item.git.repo}}"
dest: "{{item.git.dest}}"