Using Ansible Playbooks to setup your server | Serverwise
blog.ssdnodes.com › blog › ansible-initial-setupMay 13, 2021 · To run the above playbook, switch to the directory where the playbook lives and use the ansible-playbook command: $ cd playbooks/ $ ansible-playbook initial-setup.yaml. If you have not set your SSH keys, and are going to login using password, install sshpass on your local machine and use ansible-playbook with the flag --ask-pass to allow ansible to login using plain text password: $ sudo apt install sshpass $ ansible-playbook --ask-pass initial-setup.yaml
Sample Ansible setup — Ansible Documentation
docs.ansible.com › user_guide › sample_setupDec 21, 2021 · Sample Ansible setup You have learned about playbooks, inventory, roles, and variables. This section pulls all those elements together, outlining a sample setup for automating a web service. You can find more example playbooks illustrating these patterns in our ansible-examples repository. (NOTE: These may not use all of the features in the latest release, but are still an excellent reference!).