Ansible Playbooks for CentOS7
$ git clone https://github.com/castaneai/ansible-centos7
$ cd ansible-centos7
$ sudo ./install.sh
Available playbooks are in playbooks/
dir.
Use ansible-playbook
command to run them.
$ cd ansible-centos7/playbooks
$ ansible-playbook shell.yml
The playbook for zsh + vim.
The playbook for wordpress (+nginx, php-fpm, mysql) setup.
- worker running user:
nginx
, group:nginx
- document_root (
{{ nginx_www_dir }}
):/var/www/default
- configuration file:
/etc/nginx/conf.d/default.conf
.
- worker running user:
nginx
, group:nginx
- php-fpm works as unix-socket
/var/run/php-fpm/php-fpm.sock
- unix-socket listening owner:
nginx
, group:nginx
- using MariaDB instead of MySQL because of CentOS7
- nginx configuration file:
/etc/nginx/conf.d/wordpress.conf