Compare commits

...

2 Commits

Author SHA1 Message Date
s3lva-kumar fa3a6fd74d Add make target to exec ansible role 2022-04-12 13:16:09 +05:30
s3lva-kumar 351476d1c0 Add ansible role to deploy Uguu 2022-04-11 16:39:40 +05:30
4 changed files with 21 additions and 0 deletions

3
.gitmodules vendored
View File

@ -0,0 +1,3 @@
[submodule "ansible/ansible-role-uguu"]
path = ansible/ansible-role-uguu
url = https://github.com/s3lva-kumar/ansible-role-uguu

View File

@ -7,6 +7,7 @@ NPM="npm"
DESTDIR="./dist"
PKG_VERSION := $( $(GREP) -Po '(?<="version": ")[^"]*' )
TMPDIR := $(shell mktemp -d)
HOSTS_FILE = $(HOSTS_FILE)
# default modules
MODULES="php"
@ -62,6 +63,12 @@ endif
install: installdirs
cp -rv $(CURDIR)/build/* $(DESTDIR)/
submodule-update:
git submodule update
deploy:
ansible-playbook -i $(HOSTS_FILE) ansible/site.yml
dist:
DESTDIR=$(TMPDIR)/uguu-$(PKGVERSION)
export DESTDIR

@ -0,0 +1 @@
Subproject commit dcde9ac909f7f4ea249b52351c1c49443eac3ae3

10
ansible/site.yml Normal file
View File

@ -0,0 +1,10 @@
- name: "install uguu"
hosts: all
become: yes
roles:
- ansible-role-uguu
vars:
paypalUrl: ""
bitcoinAddress: ""
flattrUrl: ""