From fa3a6fd74d64b33b9ef2075c7e81e480fa1f488d Mon Sep 17 00:00:00 2001 From: s3lva-kumar <98340923+s3lva-kumar@users.noreply.github.com> Date: Tue, 12 Apr 2022 13:16:09 +0530 Subject: [PATCH] Add make target to exec ansible role --- Makefile | 7 +++++++ ansible/site.yml | 22 ++-------------------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/Makefile b/Makefile index 391362c..a20f8b5 100644 --- a/Makefile +++ b/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 diff --git a/ansible/site.yml b/ansible/site.yml index 0161869..9738112 100644 --- a/ansible/site.yml +++ b/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: "" \ No newline at end of file + flattrUrl: "" \ No newline at end of file