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.

18 lines
458 B

  1. # Getting Started
  2. ## Create symlink for ansible hosts
  3. `sudo ln -s $(realpath hosts) /etc/ansible/hosts`
  4. ## Modify your ~/.ssh/config
  5. ```
  6. Host debian10.dedic106-dhcp.dimti.ru
  7. Port 22242
  8. ```
  9. ## Install needed ansible galaxy collections
  10. ```
  11. ansible-galaxy install -g -f -r requirements.yml
  12. ```
  13. # Usage
  14. ## Ping
  15. `ansible debian10 -m ping -u root`
  16. ## Playbook
  17. `ansible-playbook anygroup.yml`
  18. ## Playbook group only tag
  19. `ansible-playbook anygroup.yml -t nginx`