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

Protecting data with Ansible Vault

We have seen so far how to use Ansible with an inventory file that contains the list of hosts to configure, and with a playbook that contains the code of the host's configuration actions. But in all IaC tools, it will be necessary to extract some data that is specific to a context or environment inside variables.

In this section, we will look at how to use variables in Ansible and how to protect sensitive data with Ansible Vault.

To illustrate this use and protection of variables, we will complete our example with the installation of a MySQL server on the database server.

Let's begin by looking at the use and utility of variables in Ansible.

主站蜘蛛池模板: 巧家县| 吉林市| 星子县| 三门县| 米易县| 邯郸县| 张家口市| 清新县| 玉林市| 芦山县| 衡阳市| 抚州市| 祥云县| 岑溪市| 绩溪县| 兰坪| 浮山县| 岳普湖县| 柳江县| 启东市| 陈巴尔虎旗| 鞍山市| 丘北县| 洪湖市| 西吉县| 赣榆县| 昂仁县| 大丰市| 商河县| 南充市| 富民县| 承德市| 林州市| 三门县| 康平县| 宁夏| 铁岭县| 台安县| 定西市| 克拉玛依市| 东宁县|