change name to git_name
This commit is contained in:
parent
1e3e08b555
commit
61b59c8a20
@ -1,13 +1,13 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
31613733363838323034373330363534363737373764653261366361376236333563646233336163
|
33646437393365646539336536336139353434326631616266313131326363666133326365386135
|
||||||
3465613439303661373361663964343338376261323566640a373837646263383965343831306438
|
3730326363313064353737623638396362373864343539650a323763333831613762313361366261
|
||||||
62643130316366653865643438343630306439326431396339623635363630343164366530373464
|
63343630306135663463343430396537633665363335646135633030316266366561393436663565
|
||||||
3736333430616261320a376138643533393365326330316634393437393763363566373239626532
|
3034333636353864360a623139646463316465646335623561373234373138346332383735623664
|
||||||
61323331633030316438313563616164366335643331393536666134653339363639393033633935
|
62663866343963666633643866376137613135373236663134323835636466643530656132323632
|
||||||
34616439383165633035373764386439653336383837653933356439363866373432303364353864
|
36643964396437313030613436656538623663613663303762656665346162613063373861343334
|
||||||
65653439353538376633653666643765333730363634383361346137623432343939346266383362
|
32646630366630333339626261363665373461353135386563393632376234366566306466633164
|
||||||
34373638356462353066623930653766353331353936656133636230613264353933616161643139
|
34306434623263633331623732323266343035323730653039303439333635343234653536306263
|
||||||
64626639343863373933633963633861333739396361323636303535376336663832326261383535
|
34303765333365623866656164663832393631653063393339646338333261663863313738613137
|
||||||
64623266653562393664323330366564643437383532663163386535643835653362346339653236
|
36353532616434353333393639636135616165333630303265356438303961363464396532316632
|
||||||
35656339396633356530333266666439373561356133343164643138353230353334373731323861
|
37636364666130366533363664646531613538313034653662613636323939396461626430363764
|
||||||
33393432363632653333
|
35366165306233303830
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
- 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/{{ item.name }}.git"
|
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ item.git_name }}.git"
|
||||||
dest: "/home/valentin/src/"
|
dest: "/home/valentin/src/"
|
||||||
archive: "/tmp/{{ item.name }}.tar.gz"
|
archive: "/tmp/{{ item.name }}.tar.gz"
|
||||||
force: yes
|
force: yes
|
||||||
update: yes
|
update: yes
|
||||||
when: "item.name is defined"
|
when: "item.git_name is defined"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ project }}"
|
- "{{ project }}"
|
||||||
|
|
||||||
@ -16,12 +16,12 @@
|
|||||||
|
|
||||||
- name: "Create directory "
|
- name: "Create directory "
|
||||||
file:
|
file:
|
||||||
path: "/var/www/{{ item.name }}"
|
path: "/var/www/{{ item.git_name }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: www-data
|
owner: www-data
|
||||||
group: www-data
|
group: www-data
|
||||||
mode: '500'
|
mode: '500'
|
||||||
when: "item.name is defined"
|
when: "item.git_name is defined"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ project }}"
|
- "{{ project }}"
|
||||||
vars:
|
vars:
|
||||||
@ -32,12 +32,12 @@
|
|||||||
|
|
||||||
- name: "Extract repo "
|
- name: "Extract repo "
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "/tmp/{{ item.name }}.tar.gz"
|
src: "/tmp/{{ item.git_name }}.tar.gz"
|
||||||
dest: "/var/www/{{ item.name }}"
|
dest: "/var/www/{{ item.git_name }}"
|
||||||
owner: www-data
|
owner: www-data
|
||||||
group: www-data
|
group: www-data
|
||||||
mode: '500'
|
mode: '500'
|
||||||
when: "item.name is defined"
|
when: "item.git_name is defined"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ project }}"
|
- "{{ project }}"
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
- name: "Remove all directories"
|
- name: "Remove all directories"
|
||||||
file:
|
file:
|
||||||
path: "/var/www/{{ item.name }}"
|
path: "/var/www/{{ item.git_name }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: "item.name is defined and project_name is not defined"
|
when: "item.git_name is defined and project_name is not defined"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ project }}"
|
- "{{ project }}"
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user