Skip to content

mehradi-github/ref-singbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing sing-box via Ansible

Installing sing-box on Linux via Ansible

Ansible automates the management of remote systems and controls their desired state. more details Automation with Ansible.

Requirments

Installing Ansible

Ansible automates the management of remote systems and controls their desired state. [Installing Ansible on Ubuntu]

Gathers facts about remote hosts

vi /etc/ansible/hosts
ansible all -m ping
#Gathers facts about remote hosts
ansible all -m setup

Adding hosts

# Download project and cd to project dir

vi ./src/hosts
# Changing SERVER-IP,USER and PORT
[servers]
SERVER-IP ansible_user=USER ansible_port=PORT

Installing sing-box on Server

vi ./src/roles/server-sing-box/vars/main.yml
# Changing port and SNI
listen_port: 443
server_name: 'example.com'

cd ./src
ansible-playbook -i ./hosts ./install-playbook.yaml -t servers

ansible-playbook -i ./hosts ./install-playbook.yaml -t servers -K

-k, --ask-pass: ask for connection password

-K, --ask-become-pass: ask for privilege escalation password

Installing sing-box on Client

vi src/roles/client-sing-box/vars/main.yml
# Changing below vars based on server info
server_ipv4: 'a'
uuid: 'b'
server_name: 'c'
public_key: 'd'
short_id: 'e'

cd ./src
ansible-playbook ./install-playbook.yaml -t clients

About

Installing sing-box on Linux via Ansible

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages