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

  • Learning DevOps
  • Mikael Krief
  • 124字
  • 2021-06-24 12:32:13

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.

主站蜘蛛池模板: 潞城市| 永胜县| 凤翔县| 沧州市| 贡觉县| 莱西市| 江城| 宁远县| 芜湖县| 河间市| 双峰县| 达日县| 柘城县| 类乌齐县| 龙泉市| 绥江县| 深州市| 麻城市| 同心县| 新绛县| 嘉禾县| 大荔县| 大兴区| 永清县| 塘沽区| 康平县| 旬阳县| 河东区| 油尖旺区| 嵊州市| 金华市| 汽车| 安庆市| 鄂托克前旗| 封丘县| 肥东县| 湘乡市| 古蔺县| 竹溪县| 乌兰察布市| 大连市|