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
bbb84079df
|
4 months ago | |
---|---|---|
data/db-dumps | 1 year ago | |
group_vars | 1 year ago | |
manala | 2 years ago | |
playbooks | 4 months ago | |
role/defaults | 2 years ago | |
roles | 10 months ago | |
secret | 2 years ago | |
vars | 4 months ago | |
.gitignore | 2 years ago | |
LICENSE | 7 years ago | |
README.md | 10 months ago | |
ansible.cfg | 1 year ago | |
anygroup.yml | 2 years ago | |
hosts | 7 months ago | |
ping.yml | 2 years ago | |
requirements.yml | 2 years ago | |
run-lxc-playbook.sh | 8 months ago | |
run-playbook.sh | 7 months ago | |
run-site-playbook.sh | 7 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