Update create-user.yml
This commit is contained in:
parent
a747047d79
commit
823966ce61
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user