Summary
Explore how to use Ansible to communicate with remote Linux and Windows hosts through ad-hoc commands and playbooks. Understand setting up Nginx on Linux and IIS on Windows, managing permissions, and automating software installs with modules like win_chocolatey. Gain practical skills to handle infrastructure deployment and clean-up across environments safely.
We'll cover the following...
We'll cover the following...
This chapter communicated and deployed infrastructure with the remote Linux and Windows hosts by using different Ansible ad-hoc commands and playbooks.
We started with ad-hoc commands to connect with Linux and Windows hosts. We introduced additional variables required to connect to both of them. They were as follows:
Linux
ansible_useransible_passwordansible_ssh_common_args- Disables host key checking
Windows
ansible_useransible_password