#### Option A: upload otree project directly into ansible project
#### option A: upload otree project directly into ansible project
1. If no git-repository ``app_repo``-value with your otree configuration is provided, you have to place a copy of the project files (with scp) in ``files/<otree_username>/``.
1. If no git-repository ``app_repo``-value with your otree configuration is provided, you have to place a copy of the project files (with scp) in ``files/<otree_username>/``.
#### Option B: clone via git and provide ssh keys
#### option B: clone via git and provide ssh keys
1. If git-repository ``app_repo`` is provided and the repo is private you have to setup key authentication.
1. If git-repository ``app_repo`` is provided and the repo is private you have to setup key authentication.
2. Generate a public-private key pair in the ansible project ``keys/<otree_instance_name>/`` with ``ssh-keygen -f id -t ed25519 -N '' -a 100``
2. Generate a public-private key pair in the ansible project ``keys/<otree_instance_name>/`` with ``ssh-keygen -f id -t ed25519 -N '' -a 100``
3. Upload public key in your git provider (GitLab: User Settings->SSH Keys) and make sure you have access to the specified project in ``app_repo``
3. Upload public key in your git provider (GitLab: User Settings->SSH Keys) and make sure you have access to the specified project in ``app_repo``
And now run the playbook.
Make sure your ``requirements.txt`` contains "otree==your_desired_version". And now you are ready to run the playbook.
## change the configuration
## change the configuration
1. Adapt your inventory-config again with ``nano /opt/otree/otree-ansible/group_vars/otree_servers.yml`` and run the playbook.
1. Adapt your inventory-config again with ``nano /opt/otree/otree-ansible/group_vars/otree_servers.yml`` and run the playbook.
...
@@ -93,11 +93,11 @@ And now run the playbook.
...
@@ -93,11 +93,11 @@ And now run the playbook.
## FAQ
## FAQ
### There is an error with redis in apt installation
Solution: Disable ipv6 in ``/etc/redis/redis.conf``
### For which operating system is this ansible script optimized?
### For which operating system is this ansible script optimized?
Currently only Ubuntu 18.04.03 LTS with Python 3.6/3.7 is tested and targeted.
Currently only Ubuntu 18.04.03 LTS with Python 3.6/3.7 is tested and targeted.
### There is an error with redis in apt installation on systems with ipv6 disabled.
Solution: Disable IPV6 also in ``/etc/redis/redis.conf``: ``bind 127.0.0.1``.
### Are there plans for a GUI?
### Are there plans for a GUI?
Currently not, but feel free to do feature requests.
Currently not, but feel free to do feature requests.