- Learn Ansible
- Russ McKendrick
- 95字
- 2025-04-04 16:37:53
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.