{"id":13753915,"url":"https://github.com/lnikkila/ansible-phoenix","last_synced_at":"2025-05-09T21:36:12.268Z","repository":{"id":34961572,"uuid":"39037128","full_name":"lnikkila/ansible-phoenix","owner":"lnikkila","description":"[Unmaintained] Develop and deploy a Phoenix app using Ansible!","archived":true,"fork":false,"pushed_at":"2015-10-16T16:51:41.000Z","size":175,"stargazers_count":37,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-04T09:06:05.895Z","etag":null,"topics":["ansible","ansible-role","elixir","phoenix","vagrant"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnikkila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-13T21:01:13.000Z","updated_at":"2023-01-28T19:36:39.000Z","dependencies_parsed_at":"2022-09-01T23:40:59.602Z","dependency_job_id":null,"html_url":"https://github.com/lnikkila/ansible-phoenix","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnikkila%2Fansible-phoenix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnikkila%2Fansible-phoenix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnikkila%2Fansible-phoenix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnikkila%2Fansible-phoenix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnikkila","download_url":"https://codeload.github.com/lnikkila/ansible-phoenix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224884615,"owners_count":17386121,"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","ansible-role","elixir","phoenix","vagrant"],"created_at":"2024-08-03T09:01:34.559Z","updated_at":"2024-11-16T06:31:06.189Z","avatar_url":"https://github.com/lnikkila.png","language":"Ruby","funding_links":[],"categories":["vagrant"],"sub_categories":[],"readme":"# Phoenix role for Ansible [![Build status][circleci-badge]][circleci]\n\nThis role aims to be as lightweight as possible, providing you with\nPhoenix-specific tasks only.\n\nIt’s simple enough to be used in either development or production with the\nproper configuration. Try it with Vagrant!\n\nFor better flexibility, you’re expected to handle these prerequisites yourself:\n\n- Elixir\n- Node.js (if using Brunch)\n- PostgreSQL\n- Fetching the code for your application\n\nSee the [example playbook][playbook] for a recommended way to handle these.\n\nIn case you’re looking for a role that does more for you, check out\n[jacoelho.phoenix-app][jacoelho.phoenix-app].\n\n### Installation\n\nThe role is available through [Ansible Galaxy][galaxy].\n\nAdd to your requirements.yml:\n\n```yaml\n- src: lnikkila.phoenix\n```\n\n### Usage\n\nInclude the role in your playbook:\n\n```yaml\n- role: lnikkila.phoenix\n```\n\nThere’s no need to run the entire role as root. The tasks that require it are\nconfigured separately to use `become`.\n\nThe role exposes a few variables for configuration. The defaults should be\nmostly sensible:\n\n```yaml\n# Whether to run a Brunch build and Ecto migrations.\n# NOTE: Using Brunch requires Node.js.\nphoenix_use_brunch: true\nphoenix_use_ecto:   true\n\n# Mix environment (propagates to Phoenix.)\nphoenix_env: prod\n\n# Server port.\nphoenix_port: 4000\n\n# Extra environment variables you want passed to Phoenix. Feel free to add your\n# secret keys and such.\nphoenix_env_vars: {}\n\n# Path to the app.\nphoenix_path: /var/www\n\n# User for running the server.\nphoenix_user:  phoenix\nphoenix_group: phoenix\n\n# Whether to create a system user. System users have the system flag set to true\n# and have a home directory at {{ phoenix_path }}.\n#\n# Set this to false if you want to use an existing user. The system flag cannot\n# be changed after a user has been created.\n#\n# Disable this also if you're running Vagrant and have Phoenix at /vagrant.\n# The shared directory cannot host executables. That will cause problems with\n# Mix as it installs dependencies there.\nphoenix_system_user: true\n\n# Command for running the server.\nphoenix_bin: mix phoenix.server\n```\n\n### Licence\n\n```\nCopyright (c) 2015, Leo Nikkilä\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n```\n\n[circleci-badge]: https://img.shields.io/circleci/project/lnikkila/ansible-phoenix.svg\n[circleci]: https://circleci.com/gh/lnikkila/ansible-phoenix\n[galaxy]: https://galaxy.ansible.com/list#/roles/4385\n[playbook]: /spec/support/playbook.yml\n[jacoelho.phoenix-app]: https://github.com/jacoelho/ansible-phoenix-app\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnikkila%2Fansible-phoenix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnikkila%2Fansible-phoenix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnikkila%2Fansible-phoenix/lists"}