Refactored with global settings.js and updated Ansible playbook