
上QQ阅读APP看书,第一时间看更新
Starting NGINX and PHP-FPM
Now that we have our stack installed and configured, we need to start the two services rather than waiting until the end of the playbook run. If we don't do this now, our upcoming role to install WordPress will fail. The two tasks in roles/stack-config/tasks/main.yml are:
- name: start php-fpm
service:
name: "php-fpm"
state: "started"
- name: start nginx
service:
name: "nginx"
state: "started"