1
0
mirror of https://github.com/nokonoko/Uguu.git synced 2024-01-06 13:35:15 +00:00

Add make target to exec ansible role

This commit is contained in:
s3lva-kumar 2022-04-12 13:16:09 +05:30
parent 351476d1c0
commit fa3a6fd74d
2 changed files with 9 additions and 20 deletions

View File

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

View File

@ -1,28 +1,10 @@
- name: "install uguu" - name: "install uguu"
hosts: all hosts: all
become: yes become: yes
role: roles:
- ansible-role-uguu - ansible-role-uguu
vars: vars:
generateRobotstxt: ""
generateSitemap: ""
max_upload_size: ""
production: ""
siteName: ""
siteUrl: ""
abuseContact: ""
infoContact: ""
ServerCountryLocation: ""
SiteMetaInfo: ""
paypalUrl: "" paypalUrl: ""
bitcoinAddress: "" bitcoinAddress: ""
flattrUrl: "" flattrUrl: ""
LOG_IP: ""
DB_USER: ""
DB_PASS: ""
ANTI_DUPE: ""
FILES_RETRIES: ""
SSL: ""
NAME_LENGTH: ""
URL: ""