上QQ阅读APP看书,第一时间看更新
Technical requirements
- To install Ansible, we need an OS: Red Hat, Debian, CentOS, macOS, or any of the BSDs. For those who have Windows, we can install the Windows Subsystem for Linux (WSL); refer to the documentation here: https://docs.microsoft.com/en-us/windows/wsl/install-win10.
- An Ansible playbook uses YAML configuration files, so any code editor would work; however, we will be using Visual Studio Code as it is very suitable. You can download it here: https://code.visualstudio.com/.
- Most of this chapter will not focus on a particular cloud provider, except for the last section on Azure. We will need an Azure subscription that we can get for free from here: https://azure.microsoft.com/en-us/free/.
- To run the Ansible dynamic inventory for Azure, we need to install the Azure Python SDK: https://docs.microsoft.com/en-us/azure/python/python-sdk-azure-install?view=azure-python.
- The complete source code of this chapter is available here: https://github.com/PacktPublishing/Learning_DevOps/tree/master/CHAP03.
Check out the following video to see the Code in Action:
http://bit.ly/2BCZ51B