- Mastering Ansible
- Jesse Keating
- 217字
- 2021-07-30 10:27:18
Ansible version and configuration
It is assumed that you have Ansible installed on your system. There are many documents out there that cover installing Ansible in a way that is appropriate for the operating system and version that you might be using. This book will assume the use of the Ansible 1.9.x version. To discover the version in use on a system with Ansible already installed, make use of the version argument, that is, either ansible
or ansible-playbook
:

Note
Note that ansible
is the executable for doing ad-hoc one-task executions and ansible-playbook
is the executable that will process playbooks for orchestrating many tasks.
The configuration for Ansible can exist in a few different locations, where the first file found will be used. The search order changed slightly in version 1.5, with the new order being:
ANSIBLE_CFG
: This is an environment variableansible.cfg
: This is in the current directoryansible.cfg
: This is in the user's home directory/etc/ansible/ansible.cfg
Some installation methods may include placing a config file in one of these locations. Look around to check whether such a file exists and see what settings are in the file to get an idea of how Ansible operation may be affected. This book will assume no settings in the ansible.cfg
file that would affect the default operation of Ansible.
- Mastering OpenLayers 3
- DevOps:軟件架構師行動指南
- Designing Machine Learning Systems with Python
- TypeScript入門與實戰
- Software Defined Networking with OpenFlow
- 自己動手實現Lua:虛擬機、編譯器和標準庫
- Python王者歸來
- Hadoop+Spark大數據分析實戰
- Mastering Scientific Computing with R
- Learning Laravel 4 Application Development
- WebRTC技術詳解:從0到1構建多人視頻會議系統
- 基于Struts、Hibernate、Spring架構的Web應用開發
- Creating Data Stories with Tableau Public
- C語言程序設計實訓教程與水平考試指導
- JavaScript程序設計:基礎·PHP·XML