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"
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

View File

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