- Ansible 2 Cloud Automation Cookbook
- Aditya Patawari Vikas Aggarwal
- 203字
- 2021-06-24 18:43:35
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.

推薦閱讀
- 現代測控電子技術
- 過程控制工程及仿真
- 模型制作
- Photoshop CS3特效處理融會貫通
- 大數據技術與應用
- 網絡安全與防護
- PostgreSQL 10 Administration Cookbook
- Python:Data Analytics and Visualization
- 大數據技術基礎:基于Hadoop與Spark
- 教育機器人的風口:全球發展現狀及趨勢
- Working with Linux:Quick Hacks for the Command Line
- 重估:人工智能與賦能社會
- Mastering Predictive Analytics with scikit:learn and TensorFlow
- Building Google Cloud Platform Solutions
- 工業機器人基礎