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

Working with cloud providers

Under normal circumstances, users execute the ansible-playbook command from a system, say A. This system has inventory, playbooks, roles, variable definitions and other information required to configure a remote system, say B, to a desired state.

When we talk about building infrastructure using Ansible, things change a bit. Now, we are not configuring a remote system. We are actually interacting with a cloud provider to create or allocate certain resources to us. We may, at a later point in time, choose to configure these resources using Ansible as well. Interacting with a cloud provider is slightly different from executing a regular playbook. There are two important points that we need to keep in mind:

  • A lot of the tasks will execute on the local machine and will interact with API provided by a cloud provider. In principle, we won't need SSH setup because, in typical cases, requests will go from our local machine to the cloud provider using HTTPS.
  • The cloud provider will need to authenticate and authorize our requests. Usually this is done by providing a set of secrets, or keys, or tokens. Since these tokens are sensitive, we should learn a little bit about Ansible Vault.
主站蜘蛛池模板: 广西| 高州市| 柳州市| 宜阳县| 化德县| 宁远县| 连州市| 东乡县| 曲麻莱县| 昭苏县| 广宁县| 财经| 乐山市| 郓城县| 平泉县| 三江| 盐津县| 庆安县| 玛纳斯县| 沐川县| 宜宾市| 黄龙县| 屯留县| 庆元县| 上杭县| 仁化县| 盘锦市| 罗江县| 平乐县| 环江| 芜湖市| 涿鹿县| 祁连县| 长海县| 铜陵市| 双柏县| 阿克苏市| 江油市| 阿鲁科尔沁旗| 上思县| 涞水县|