Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit a48ad04d authored by Jean-François HOVINNE's avatar Jean-François HOVINNE
Browse files

feat: Initial implementation

parents
Branches
Tags 0.1.0
No related merge requests found
/roles
/tmp
/venv
# Workspace tools
This Ansible playbook provides tools and automated configuration for developers' workspaces.
## Requirements
- Python 3.x with the `venv` module (`apt install python3-venv`), Ansible does *not* need to be installed.
- The tools are installed system-wide, so administrative access is necessary.
## Usage
```
sudo ./exec.sh
```
exec.sh 0 → 100755
#!/usr/bin/env bash
WORKDIR=`dirname "$0"`
python3 -m venv $WORKDIR/venv
source $WORKDIR/venv/bin/activate
pip install pip --upgrade
pip install ansible --upgrade
test -f $WORKDIR/requirements.yml && ansible-galaxy install -r $WORKDIR/requirements.yml -p $WORKDIR/roles
ANSIBLE_REMOTE_TEMP=$WORKDIR/tmp ANSIBLE_ROLES_PATH=$WORKDIR/roles ansible-playbook -c local -i localhost, $WORKDIR/playbook.yml
deactivate
rm -rf $WORKDIR/roles $WORKDIR/tmp $WORKDIR/venv
---
- hosts: all
roles:
- ecgalaxy.bootstrap
- ecgalaxy.common_packages
- ecgalaxy.ca_certificates
- ecgalaxy.aws_cli
- ecgalaxy.task
---
- ecgalaxy.aws_cli
- ecgalaxy.bootstrap
- ecgalaxy.ca_certificates
- ecgalaxy.common_packages
- ecgalaxy.task
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment