{"id":19109992,"url":"https://github.com/coopdevs/somoffice_role","last_synced_at":"2025-07-18T11:40:21.701Z","repository":{"id":149495982,"uuid":"607074006","full_name":"coopdevs/somoffice_role","owner":"coopdevs","description":"An Ansible role to deploy SomOffice","archived":false,"fork":false,"pushed_at":"2023-09-07T12:00:43.000Z","size":37,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-10T09:18:26.012Z","etag":null,"topics":["ansible-role"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/coopdevs/somoffice_role","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coopdevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-27T08:59:13.000Z","updated_at":"2023-03-02T17:43:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"747caa23-8cba-4909-9874-3348d8180793","html_url":"https://github.com/coopdevs/somoffice_role","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"coopdevs/ansible-role-template","purl":"pkg:github/coopdevs/somoffice_role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsomoffice_role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsomoffice_role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsomoffice_role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsomoffice_role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coopdevs","download_url":"https://codeload.github.com/coopdevs/somoffice_role/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsomoffice_role/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265753431,"owners_count":23823079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-role"],"created_at":"2024-11-09T04:23:10.341Z","updated_at":"2025-07-18T11:40:21.378Z","avatar_url":"https://github.com/coopdevs.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"SomOffice role\n=========\n\nA role to deploy [SomOffice](https://git.coopdevs.org/coopdevs/comunitats-energetiques/somoffice/).\n\nThis role will:\n- Ensure you have all the dependencies installed in your machine.\n- Download the repository to a temp local directory.\n- Install the app's dependencies.\n- Render the `.env` file.\n- Build the app.\n- Ensure you have all the dependencies installed in the development environment.\n- Deploy the app using capistrano strategy.\n- Delete local temporary files.\n\nRequirements\n------------\nHard dependencies are declared in `somoffice_role_hard_deps` var (see `vars/main.yml`).\nThey are checked by main task prior to role execution.\n\nDependencies\n-------------\n- [ansistrano.deploy](https://github.com/ansistrano/deploy)\n\nRole Variables\n--------------\n```yaml\nsomoffice_role_backoffice_version: \"main\"\nsomoffice_role_backoffice_repo:  \"https://git.coopdevs.org/coopdevs/comunitats-energetiques/somoffice/back-office\"\nsomoffice_role_local_path: \"./build/backoffice\"\nsomoffice_remote_base_path: \"/opt/somoffice\"\n\n# .env file variables\nsomoffice_role_env_host: \"https://example.coop\"\nsomoffice_role_env_keycloak: \"https://example.coop/auth\"\nsomoffice_role_env_kc_realm: \"somoffice\"\nsomoffice_role_env_kc_client: \"client id\"\n```\nExample Playbook\n----------------\n\nYou can test this role creating a local development environment with `devenv` command. This will call [`devenv`](https://github.com/coopdevs/devenv) with the [`.devenv`](.devenv) file as configuration. `devenv` will create a LXC virtual environment.\n\n```bash\ndevenv\n```\n\nThen, you can run the playbook \u0026 inventory residing in the `tests` directory:\n\n```bash\nansible-playbook tests/test.yml --extra-vars=\"@defaults/main.yml\"  --extra-vars=\"@vars/main.yml\" -i tests/inventory\n```\n\nLicense\n-------\n\nGPLv3\n\nAuthor Information\n------------------\n\n[Coopdevs](https://coopdevs.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoopdevs%2Fsomoffice_role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoopdevs%2Fsomoffice_role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoopdevs%2Fsomoffice_role/lists"}