Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrag00n <christophermluciano@gmail.com>2014-04-15 02:16:33 +0400
committerdrag00n <christophermluciano@gmail.com>2014-04-15 05:46:02 +0400
commit5714b44d01eec683cba4f8553fbd9d59d7d74729 (patch)
treec2401179543818984be3634b1a1b18bb951a6447 /wordpress-nginx
parent942ace576f77a29ca05f822e4c0b82adfd95247f (diff)
Added auto updating to wordpress
Diffstat (limited to 'wordpress-nginx')
-rw-r--r--wordpress-nginx/group_vars/all10
-rw-r--r--wordpress-nginx/roles/wordpress/templates/wp-config.php6
2 files changed, 16 insertions, 0 deletions
diff --git a/wordpress-nginx/group_vars/all b/wordpress-nginx/group_vars/all
index ebc8c2e..2057a29 100644
--- a/wordpress-nginx/group_vars/all
+++ b/wordpress-nginx/group_vars/all
@@ -14,3 +14,13 @@ mysql_port: 3306
# This is used for the nginx server configuration, but access to the
# Wordpress site is not restricted by a named host.
server_hostname: www.example.com
+
+# Diable All Updates
+# By default automatic updates are enable, set this value to tru to disable all automatic updates
+auto_up_disable: false
+
+#Define Core Update Level
+#true = Development, minor, and major updates are all enabled
+#false = Development, minor, and major updates are all disabled
+#minor = Minor updates are enabled, development, and major updates are disabled
+core_update_level: true
diff --git a/wordpress-nginx/roles/wordpress/templates/wp-config.php b/wordpress-nginx/roles/wordpress/templates/wp-config.php
index 36b3cf0..a570c72 100644
--- a/wordpress-nginx/roles/wordpress/templates/wp-config.php
+++ b/wordpress-nginx/roles/wordpress/templates/wp-config.php
@@ -82,3 +82,9 @@ if ( !defined('ABSPATH') )
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
+
+/** Disable Automatic Updates Completely */
+define( 'AUTOMATIC_UPDATER_DISABLED', {{auto_up_disable}} );
+
+/** Define AUTOMATIC Updates for Components. */
+define( 'WP_AUTO_UPDATE_CORE', {{core_update_level}} );