最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Ansible配置

2023-03-25 13:14 作者:每天輸出五分鐘  | 我要投稿


Ansible Configuration

Precedence from lowest to highest

Configuration File

Find the first ‘a(chǎn)nsible.cfg’ in these locations in order:

Environment Variable: ANSIBLE_CONFIG

Current Directory

Home Directory ~/

/etc/ansible

Generate a sample file

ansible-config init --disabled > ansible.cfg

ansible-config init --disabled -t all > ansible.cfg

includes existing plugins

Environment Variables

Command-line options

Commands

ansible

ansible-config

ansible-console

ansible-doc

ansible-galaxy

ansible-inventory

ansible-playbook

ansible-pull

ansible-vault

Options

Help

ansible -h

ansible-playbook -h

... ...

For option that accepts only a single value, the last one wins

Eg:

ansible -m ping myhost -u mike -u carol

ansible -m ping myhost -u carol

For option that allow multiple values, append all

Eg:

ansible -i /path/inventory1 -i /path/inventory2 -m ping all

Playbook keywords

Eg, connection

Variables (Connection variables)

Set the specifics on how to execute actions on a target

ansible_become_user

ansible_connection

ansible_host

ansible_python_interpreter

ansible_user

Define

In inventory

In playbooks

Using extra variables at the command line

-e or --extra-vars

ansible -u carol -e 'ansible_user=brian' -a whoami all

brian



Ansible配置的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
文安县| 湖南省| 平遥县| 鄄城县| 新乡市| 金塔县| 鄄城县| 江油市| 革吉县| 城市| 专栏| 巧家县| 湖北省| 威宁| 通辽市| 富阳市| 阿合奇县| 美姑县| 杂多县| 吉林省| 和硕县| 凤山县| 垫江县| 连城县| 漾濞| 民权县| 桃园市| 咸阳市| 拉萨市| 浮梁县| 宜良县| 电白县| 伊宁县| 信丰县| 唐河县| 固阳县| 胶州市| 龙江县| 韶山市| 延津县| 沅陵县|