
上QQ阅读APP看书,第一时间看更新
The stack-config role
The next role will configure the software stack we have just installed, so let's create the role:
$ ansible-galaxy init roles/stack-config
Now that we have the files needed for the role, we can make a start on planning what we need to configure. We will need to do the following:
- Create a user for our WordPress to run under
- Configure NGINX as per the best practices on the WordPress Codex
- Configure PHP-FPM to run as the WordPress user
- Do the initial configuration for SELinux
Let's start by creating the WordPress user.