Closed valvin1 closed 6 years ago
nginx_remove_sites: ["foo"] or keep_only_specified
Don't hesitate to read : defaults/main.yml of a role, if you have already read that and you haven't understood it: you make an issue about that
thank you for the help and the advice :)
I'm a newbie on ansible so please forgive me if i've made a mistake somewhere.
I'm using this role with this simple playblook which works well :
then i want to change site configuration like this :
when I run my playbook I get an error :
"msg": "Unable to reload service nginx: Job for nginx.service failed because the control process exited with error code.\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"
for and bar sites are setup and if i restart nginx it listens on 80 and 8080. foo site has not been disabled.
Is there a way to clean its configuration to be sure to run only sites we have setup ?