finish unarchive git project
This commit is contained in:
parent
dc5ce05094
commit
7509c69283
@ -4,7 +4,7 @@
|
|||||||
- name: git archive {{ item }}
|
- name: git archive {{ item }}
|
||||||
local_action:
|
local_action:
|
||||||
module: git
|
module: git
|
||||||
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ project_name }}.git"
|
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ item }}.git"
|
||||||
dest: "/home/valentin/src/"
|
dest: "/home/valentin/src/"
|
||||||
archive: "/tmp/{{ item }}.tar.gz"
|
archive: "/tmp/{{ item }}.tar.gz"
|
||||||
force: yes
|
force: yes
|
||||||
@ -17,13 +17,27 @@
|
|||||||
file:
|
file:
|
||||||
path: "/var/www/{{ item }}"
|
path: "/var/www/{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
|
mode: '500'
|
||||||
with_items: "{{ project_name }}"
|
with_items: "{{ project_name }}"
|
||||||
when: "project_name is defined"
|
when: "project_name is defined"
|
||||||
|
vars:
|
||||||
|
ansible_become: yes
|
||||||
|
ansible_become_method: sudo
|
||||||
|
ansible_become_password: "{{ sudo_password }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Extract repo {{ item }}
|
- name: Extract repo {{ item }}
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "/tmp/{{ item }}.tar.gz"
|
src: "/tmp/{{ item }}.tar.gz"
|
||||||
dest: "/var/www/{{ item }}"
|
dest: "/var/www/{{ item }}"
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
|
mode: '500'
|
||||||
with_items: "{{ project_name }}"
|
with_items: "{{ project_name }}"
|
||||||
when: "project_name is defined"
|
when: "project_name is defined"
|
||||||
|
vars:
|
||||||
|
ansible_become: yes
|
||||||
|
ansible_become_method: sudo
|
||||||
|
ansible_become_password: "{{ sudo_password }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user