Update create-user.yml

This commit is contained in:
Will Bradley 2014-02-06 15:28:39 -07:00
parent a747047d79
commit 823966ce61

View File

@ -33,11 +33,8 @@
private: no private: no
tasks: tasks:
##
# Apt package installation of required software.
#
- name: Linux | Create User - 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 tags: common
- name: MySQL | Create Database - name: MySQL | Create Database
@ -60,6 +57,16 @@
template: src=templates/home-username-public_html-index.j2 dest=/home/$username/public_html/index.html template: src=templates/home-username-public_html-index.j2 dest=/home/$username/public_html/index.html
tags: file 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 - name: Apache | Enable site
command: a2ensite {{ username }} command: a2ensite {{ username }}
tags: apache tags: apache