Can you re-run the server playbook if you need to update things such as SSL or hostnames?

Hi guys,

Quick question; say I have already provisioned my server with the server playbook. If I make changes to the group_vars stuff such as changing a site_hosts domain or changing the SSL settings, can I just re-run the server playbook and will it only update the things that have changed? Is this the best practise? Will it automatically update the nginx conf and reload it etc?

Thanks

Yep. You can always re-provision once you’ve made changes and your database won’t be effected.

You can run the playbook with just the relevant tags, too, such as:

ansible-playbook server.yml -e env=staging --tags letsencrypt,nginx
1 Like