Browse Source

Add make target to exec ansible role

s3lva-kumar/ansible-role
s3lva-kumar 3 months ago
parent
commit
fa3a6fd74d
  1. 7
      Makefile
  2. 22
      ansible/site.yml

7
Makefile

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

22
ansible/site.yml

@ -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: ""
Loading…
Cancel
Save