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

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.

主站蜘蛛池模板: 河池市| 舒城县| 嵩明县| 巩留县| 绥德县| 大宁县| 阳谷县| 九台市| 泰和县| 内乡县| 樟树市| 米脂县| 渝北区| 罗田县| 南昌市| 泌阳县| 遂昌县| 凉山| 聂荣县| 铜川市| 罗定市| 台州市| 安泽县| 铜梁县| 南乐县| 泽州县| 潜江市| 昭苏县| 金湖县| 于都县| 闻喜县| 桂东县| 三江| 张家港市| 游戏| 浏阳市| 康乐县| 东乌珠穆沁旗| 浦东新区| 彝良县| 盘锦市|