deployement covas-liquibase
This commit is contained in:
parent
4c465044ef
commit
69a9be3a02
8
inventory/group_vars/db_vault
Normal file
8
inventory/group_vars/db_vault
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
34626434323630303038366133623235343836353338666532653864656533623937643239313261
|
||||||
|
3036333938613861313833303537343637386135643939640a636638363934326133386538306163
|
||||||
|
63616464303165396338366465336335613761316261666535633730653433333465303761323837
|
||||||
|
6261323137663035390a616438393138663039643233306233653361663435623239323639623335
|
||||||
|
65383038306462363263623162343363613633633432333364363236633065633437623339396239
|
||||||
|
35633137613933323635306234633262306536393536316464326431646361366438346661333234
|
||||||
|
383930316166353338313935353133316666
|
7
inventory/hosts
Normal file
7
inventory/hosts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
vps ansible_connection=ssh ansible_host=51.222.107.37 ansible_port=2424 ansible_user=valentin
|
||||||
|
|
||||||
|
[db]
|
||||||
|
vps
|
||||||
|
|
||||||
|
[db_vault:children]
|
||||||
|
db
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: db
|
||||||
remote_user: root
|
remote_user: root
|
||||||
roles:
|
roles:
|
||||||
- server
|
- server
|
@ -1,2 +1,22 @@
|
|||||||
---
|
---
|
||||||
# tasks file for server
|
# tasks file for server
|
||||||
|
|
||||||
|
- name: git archive local
|
||||||
|
local_action:
|
||||||
|
module: git
|
||||||
|
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/covas-liquibase.git"
|
||||||
|
dest: "/home/valentin/src/"
|
||||||
|
archive: "/tmp/covas-liquibase.tar.gz"
|
||||||
|
force: yes
|
||||||
|
update: yes
|
||||||
|
run_once: True
|
||||||
|
|
||||||
|
- name: Create directory
|
||||||
|
file:
|
||||||
|
path: "/home/valentin/covas-liquibase"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Extract repo isr
|
||||||
|
unarchive:
|
||||||
|
src: "/tmp/covas-liquibase.tar.gz"
|
||||||
|
dest: "/home/valentin/covas-liquibase"
|
Loading…
x
Reference in New Issue
Block a user