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

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.
主站蜘蛛池模板: 襄垣县| 盐津县| 会东县| 仁布县| 大英县| 西贡区| 中阳县| 久治县| 临洮县| 滨海县| 张家界市| 蓝山县| 浦城县| 罗甸县| 岳西县| 尼勒克县| 蒙山县| 阜阳市| 高碑店市| 惠安县| 吴堡县| 秦安县| 东台市| 施秉县| 江山市| 澄江县| 奉化市| 巩留县| 天等县| 富源县| 枣强县| 慈溪市| 九江县| 隆德县| 多伦县| 高陵县| 如皋市| 西林县| 古浪县| 柏乡县| 松原市|