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

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.

主站蜘蛛池模板: 沈丘县| 长乐市| 砀山县| 理塘县| 尉氏县| 龙游县| 靖宇县| 无为县| 温州市| 西城区| 四会市| 四会市| 合江县| 丹棱县| 五河县| 丰镇市| 冷水江市| 兰考县| 镇赉县| 渭南市| 东兰县| 讷河市| 万州区| 虹口区| 白朗县| 青浦区| 比如县| 嘉荫县| 三门峡市| 潢川县| 吉林市| 石首市| 聂拉木县| 高淳县| 梁山县| 茂名市| 德保县| 凯里市| 五原县| 抚顺县| 封丘县|