Reprovisioning a production remote server after updating group_vars/all/mail.yml - is it safe?

I just want to confirm something, to be safe.

Assume I have a production server that is already provisioned, deployed to, and has been being used as an active WordPress install. When initially provisioned, I didn’t configure mail settings and now I’d like to.

After updating mail.yml, am I safe to run

ansible-playbook server.yml -e env=production

again on that existing production server, to push out only those new changes.

In other words, is re-provisioning by running the server.yml playbook a totally non-destructive action, safe to run on servers that are already provisioned, and it will just sync the smtp settings? It is not something that is intended to only be ran once, when first setting up a new server?

Is my understanding correct?

I believe I’ve found my question asked and answered in Nov 2017, here:

https://discourse.roots.io/t/setting-up-mail/10987/2

"So to be clear, reprovision as follows:
ansible-playbook server.yml -e env=production
This is safe to run on a live site?"
"Yup and yup. Go for it."

… but if anyone wants to further reinforce this answer, please do! :slight_smile:

1 Like

It’s fine. Check out Ben’s answer here, too:

https://discourse.roots.io/t/can-you-re-run-the-server-playbook-if-you-need-to-update-things-such-as-ssl-or-hostnames?source_topic_id=11935
1 Like