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:
parent
351476d1c0
commit
fa3a6fd74d
7
Makefile
7
Makefile
@ -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
|
||||||
|
@ -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: ""
|
|
Loading…
Reference in New Issue
Block a user