Deploy and configure XNAT in a Centos7 machine
This playbook has been tested with ansible 2.10.2
This repo provides a Vagrantfile to test and develop the playbook.
When using the Vagrant machine the ansible variables are defined in inventory/host_vars/default. You can edit this file in case you want to adjust any ansible var (defaults should work)
You can execute the playbook in a vagrant VM from the top folder of this repo:
$> ansible-galaxy role install -r requirements.yml -p ./roles
$> vagrant up
Once the playbook execution completes you can monitor how XNAT boots (xnat needs some minutes to boot)
$> vagrant ssh
$> sudo tail -f /opt/tomcat/logs/catalina.out
Once XNAT finished booting you can access it in http://192.168.111.222 and login as admin/admin
- copy file
inventory/host_vars/default
toinventory/host_vars/your_machine_hostname
- edit
inventory/host_vars/your_machine_hostname
and adjust it if needed (defaults should work) - add
your_machine_hostname
to inventory/hosts - download the dependency roles with
ansible-galaxy role install -r requirements.yml -p ./roles
- execute the playbook with
ansible-playbook -i inventory/hosts ansible-playbook-xnat.yml
See requirements.yml
GPLv3
Pablo Escobar Lopez