]> jfr.im git - uguu.git/commitdiff
Add make target to exec ansible role upstream/s3lva-kumar/ansible-role
authors3lva-kumar <redacted>
Tue, 12 Apr 2022 07:46:09 +0000 (13:16 +0530)
committers3lva-kumar <redacted>
Tue, 12 Apr 2022 07:46:09 +0000 (13:16 +0530)
Makefile
ansible/site.yml

index 391362c571ce1ff3d78f16329fc07ab3cbe09659..a20f8b53dd62abbae8ae057f3f45610636850e91 100644 (file)
--- 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
index 0161869d3e9943908202df29acabe402a68cc412..9738112566cb72bdc26587dee45d6397797e989f 100644 (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: ""
\ No newline at end of file
+    flattrUrl: ""
\ No newline at end of file