You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dimti
bff53b4c1a
|
2 months ago | |
---|---|---|
data/db-dumps | 1 year ago | |
group_vars | 3 months ago | |
manala | 2 years ago | |
playbooks | 2 months ago | |
role/defaults | 2 years ago | |
roles | 12 months ago | |
secret | 2 years ago | |
vars | 6 months ago | |
.gitignore | 2 years ago | |
LICENSE | 7 years ago | |
README.md | 12 months ago | |
ansible.cfg | 1 year ago | |
anygroup.yml | 2 years ago | |
hosts | 9 months ago | |
ping.yml | 2 years ago | |
requirements.yml | 2 years ago | |
run-lxc-playbook.sh | 9 months ago | |
run-playbook.sh | 8 months ago | |
run-site-playbook.sh | 8 months ago |
README.md
Getting Started
Create symlink for ansible hosts
sudo ln -s $(realpath hosts) /etc/ansible/hosts
Modify your ~/.ssh/config
Host debian10.dedic106-dhcp.dimti.ru
Port 22242
Install needed ansible galaxy collections
ansible-galaxy install -g -f -r requirements.yml
Usage
Ping
ansible debian10 -m ping -u root
Playbook
ansible-playbook anygroup.yml
Playbook group only tag
ansible-playbook anygroup.yml -t nginx