官术网_书友最值得收藏!

Integrating Ansible into Azure Cloud Shell

If we have an Azure subscription, we learned in Chapter 2Provisioning Cloud Infrastructure with Terraform, that Azure Cloud Shell integrates third-party tools that can be used in Azure without having to install them on a VM. Among these tools is Terraform, which we saw in detail in the previous chapter, but there is also Ansible, which Microsoft has integrated to facilitate the automatic configuration of the VMs that are hosted in Azure.

To use Ansible in Azure Cloud, we must do the following:

  1. Connect to the Azure portal at https://portal.azure.com.
  2. Open Cloud Shell.
  3. Choose Bash mode.
  4. In the Terminal that opens, we now have access to all Ansible commands.

The following screenshot shows the Ansible command in Azure Cloud Shell:

This way, it will be possible to use Ansible for development and testing without installing any software.

Also, Ansible has modules that allow the provisioning of an Azure infrastructure (such as Terraform, but this aspect of Ansible will not be covered in this book), and therefore its integration into Azure Cloud Shell allows a simplified authentication.

Detailed documentation on integrating Ansible into Azure Cloud Shell is available here:  https://docs.microsoft.com/en-us/azure/ansible/ansible-run-playbook-in-cloudshell.

Before we start using Ansible, we will review the important concepts (or artifacts) of Ansible, which will serve us throughout this chapter.

主站蜘蛛池模板: 鲜城| 承德县| 曲阳县| 磐石市| 永吉县| 奉节县| 昌宁县| 岳阳市| 察雅县| 阿巴嘎旗| 中江县| 达州市| 五台县| 琼中| 绥芬河市| 西平县| 上饶县| 盘山县| 格尔木市| 略阳县| 唐河县| 南皮县| 炉霍县| 宁晋县| 乃东县| 普陀区| 始兴县| 东丽区| 仁寿县| 武城县| 海兴县| 隆回县| 开封县| 江北区| 南宁市| 平顶山市| 陆川县| 义乌市| 阿城市| 金门县| 宽甸|