{"id":22744134,"url":"https://github.com/mehradi-github/ref-singbox","last_synced_at":"2026-05-16T01:33:58.869Z","repository":{"id":170163489,"uuid":"646281310","full_name":"mehradi-github/ref-singbox","owner":"mehradi-github","description":"Installing sing-box on Linux via Ansible","archived":false,"fork":false,"pushed_at":"2023-12-09T08:10:17.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-30T12:36:42.933Z","etag":null,"topics":["ansible","jinja","linux","reality","sing-box"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mehradi-github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null}},"created_at":"2023-05-27T21:47:56.000Z","updated_at":"2023-06-01T06:43:37.000Z","dependencies_parsed_at":"2023-09-27T02:47:17.001Z","dependency_job_id":"d49caa56-df5a-429d-abbb-25e4e0542852","html_url":"https://github.com/mehradi-github/ref-singbox","commit_stats":null,"previous_names":["mehradi-github/ref-singbox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mehradi-github/ref-singbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehradi-github%2Fref-singbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehradi-github%2Fref-singbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehradi-github%2Fref-singbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehradi-github%2Fref-singbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehradi-github","download_url":"https://codeload.github.com/mehradi-github/ref-singbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehradi-github%2Fref-singbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33087028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","jinja","linux","reality","sing-box"],"created_at":"2024-12-11T01:40:00.294Z","updated_at":"2026-05-16T01:33:58.854Z","avatar_url":"https://github.com/mehradi-github.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installing sing-box via Ansible\n\nInstalling [sing-box](https://github.com/SagerNet/sing-box) on Linux via [Ansible](https://docs.ansible.com/ansible/latest/index.html)\n\nAnsible automates the management of remote systems and controls their desired state. more details [Automation with Ansible](https://github.com/mehradi-github/ref-ansible#automation-with-ansible).\n\n- [Installing sing-box via Ansible](#installing-sing-box-via-ansible)\n  - [Requirments](#requirments)\n    - [Installing Ansible](#installing-ansible)\n  - [Gathers facts about remote hosts](#gathers-facts-about-remote-hosts)\n    - [Adding hosts](#adding-hosts)\n  - [Installing sing-box on Server](#installing-sing-box-on-server)\n  - [Installing sing-box on Client](#installing-sing-box-on-client)\n\n## Requirments\n\n### Installing Ansible\n\nAnsible automates the management of remote systems and controls their desired state. [[Installing Ansible on Ubuntu](https://github.com/mehradi-github/ref-ansible#installing-ansible-on-ubuntu)]\n\n## Gathers facts about remote hosts\n\n```sh\nvi /etc/ansible/hosts\nansible all -m ping\n#Gathers facts about remote hosts\nansible all -m setup\n```\n\n### Adding hosts\n\n```sh\n# Download project and cd to project dir\n\nvi ./src/hosts\n# Changing SERVER-IP,USER and PORT\n[servers]\nSERVER-IP ansible_user=USER ansible_port=PORT\n```\n\n## Installing sing-box on Server\n\n```sh\nvi ./src/roles/server-sing-box/vars/main.yml\n# Changing port and SNI\nlisten_port: 443\nserver_name: 'example.com'\n\ncd ./src\nansible-playbook -i ./hosts ./install-playbook.yaml -t servers\n\nansible-playbook -i ./hosts ./install-playbook.yaml -t servers -K\n```\n\n-k, --ask-pass: ask for connection password\n\n-K, --ask-become-pass: ask for privilege escalation password\n\n## Installing sing-box on Client\n\n```sh\nvi src/roles/client-sing-box/vars/main.yml\n# Changing below vars based on server info\nserver_ipv4: 'a'\nuuid: 'b'\nserver_name: 'c'\npublic_key: 'd'\nshort_id: 'e'\n\ncd ./src\nansible-playbook ./install-playbook.yaml -t clients\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehradi-github%2Fref-singbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehradi-github%2Fref-singbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehradi-github%2Fref-singbox/lists"}