Nginx doesn’t reload when it is being notified as the last step in the wordpress-setup task when I try to provision my production machine. Based on the error message it looks like nginx isn’t even running? Any thoughts on what might cause this?
NOTIFIED: [common | reload nginx] *********************************************
failed: [ip-of-production-machine] => {"failed": true}
msg: reload: Job is not running: nginx
The task is run here: https://github.com/roots/bedrock-ansible/blob/master/roles/wordpress-setup/tasks/nginx.yml#L28
Here are my production variables with sensitive info stripped out:
mysql_root_password: XYZ
github_ssh_keys:
- username: XYZ
authorized:
- "{{ web_user }}"
project_pre_build_commands_local:
- path: "{{ project.local_path }}/web/app/themes/brostroms"
cmd: npm install
- path: "{{ project.local_path }}/web/app/themes/brostroms"
cmd: bower install
- path: "{{ project.local_path }}/web/app/themes/brostroms"
cmd: gulp --production
project_local_files:
- name: compiled theme assets
src: "{{ project.local_path }}/web/app/themes/brostroms/dist"
dest: web/app/themes/brostroms
wordpress_sites:
brostroms150.se:
site_hosts:
- brostroms150.se
local_path: '../site' # path targeting local Bedrock site directory (relative to Ansible root)
repo: git@bitbucket.org:poggen/brostroms150.se.git
branch: master
multisite:
enabled: false
subdomains: false
ssl:
enabled: false
system_cron: true
env:
wp_home: http://brostroms150.se
wp_siteurl: http://brostroms150.se/wp
wp_env: production
db_name: XYZ
db_user: XYZ
db_password: XYZ
# Generate your keys here: https://api.wordpress.org/secret-key/1.1/salt/
auth_key: "XYZ"
auth_salt: "XYZ"
logged_in_key: "XYZ"
logged_in_salt: "XYZ"
nonce_key: "XYZ"
nonce_salt: "XYZ"
secure_auth_key: "XYZ"
secure_auth_salt: "XYZ"