From 823966ce616c11678b59f052d6bc91031b0c79c1 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Thu, 6 Feb 2014 15:28:39 -0700 Subject: [PATCH] Update create-user.yml --- create-user.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/create-user.yml b/create-user.yml index 8626b9f..e2a01e9 100644 --- a/create-user.yml +++ b/create-user.yml @@ -33,11 +33,8 @@ private: no tasks: - ## - # Apt package installation of required software. - # - name: Linux | Create User - user: name=$username comment="$user_fullname" password=$user_password shell="/bin/bash" + user: name=$username comment="$user_fullname" password=$user_password shell="/bin/bash" groups="www-data" tags: common - name: MySQL | Create Database @@ -60,6 +57,16 @@ template: src=templates/home-username-public_html-index.j2 dest=/home/$username/public_html/index.html tags: file +# notes for creating wordpress site: + +#cd /home/{username}/public_html +#sudo tar -xvf /home/wordpress-install.tgz +#sudo chown -R {username}:www-data . +#chmod -R 775 public_html + +#echo "define('FS_CHMOD_DIR', (0775 & ~ umask())); +#define('FS_CHMOD_FILE', (0664 & ~ umask()));" >> wp-config.php + - name: Apache | Enable site command: a2ensite {{ username }} tags: apache