ansible -h
admin
2023-02-27 02:40:51
0

# ansible -h


Usage: ansible [options]


Define and run a single task 'playbook' against a set of hosts


Options:

  -a MODULE_ARGS, --args=MODULE_ARGS

                        module arguments

  --ask-vault-pass ask for vault password

  -B SECONDS, --background=SECONDS

                        run asynchronously, failing after X seconds

                        (default=N/A)

  -C, --check don't make any changes; instead, try to predict some

                        of the changes that may occur

  -D, --diff when changing (small) files and templates, show the

                        differences in those files; works great with --check

  -e EXTRA_VARS, --extra-vars=EXTRA_VARS

                        set additional variables as key=value or YAML/JSON, if

                        filename prepend with @

  -f FORKS, --forks=FORKS

                        specify number of parallel processes to use

                        (default=5)

  -h, --help show this help message and exit

  -i INVENTORY, --inventory=INVENTORY, --inventory-file=INVENTORY

                        specify inventory host path or comma separated host

                        list. --inventory-file is deprecated

  -l SUBSET, --limit=SUBSET

                        further limit selected hosts to an additional pattern

  --list-hosts outputs a list of matching hosts; does not execute

                        anything else

  -m MODULE_NAME, --module-name=MODULE_NAME

                        module name to execute (default=command)

  -M MODULE_PATH, --module-path=MODULE_PATH

                        prepend colon-separated path(s) to module library

                        (default=[u'/root/.ansible/plugins/modules',

                        u'/usr/share/ansible/plugins/modules'])

  -o, --one-line condense output

  --playbook-dir=BASEDIR

                        Since this tool does not use playbooks, use this as a

                        subsitute playbook directory.This sets the relative

                        path for many features including roles/ group_vars/

                        etc.

  -P POLL_INTERVAL, --poll=POLL_INTERVAL

                        set the poll interval if using -B (default=15)

  --syntax-check perform a syntax check on the playbook, but do not

                        execute it

  -t TREE, --tree=TREE log output to this directory

  --vault-id=VAULT_IDS the vault identity to use

  --vault-password-file=VAULT_PASSWORD_FILES

                        vault password file

  -v, --verbose verbose mode (-vvv for more, -vvvv to enable

                        connection debugging)

  --version show program's version number and exit


  Connection Options:

    control as whom and how to connect to hosts


    -k, --ask-pass ask for connection password

    --private-key=PRIVATE_KEY_FILE, --key-file=PRIVATE_KEY_FILE

                        use this file to authenticate the connection

    -u REMOTE_USER, --user=REMOTE_USER

                        connect as this user (default=None)

    -c CONNECTION, --connection=CONNECTION

                        connection type to use (default=smart)

    -T TIMEOUT, --timeout=TIMEOUT

                        override the connection timeout in seconds

                        (default=10)

    --ssh-common-args=SSH_COMMON_ARGS

                        specify common arguments to pass to sftp/scp/ssh (e.g.

                        ProxyCommand)

    --sftp-extra-args=SFTP_EXTRA_ARGS

                        specify extra arguments to pass to sftp only (e.g. -f,

                        -l)

    --scp-extra-args=SCP_EXTRA_ARGS

                        specify extra arguments to pass to scp only (e.g. -l)

    --ssh-extra-args=SSH_EXTRA_ARGS

                        specify extra arguments to pass to ssh only (e.g. -R)


  Privilege Escalation Options:

    control how and which user you become as on target hosts


    -s, --sudo run operations with sudo (nopasswd) (deprecated, use

                        become)

    -U SUDO_USER, --sudo-user=SUDO_USER

                        desired sudo user (default=root) (deprecated, use

                        become)

    -S, --su run operations with su (deprecated, use become)

    -R SU_USER, --su-user=SU_USER

                        run operations with su as this user (default=None)

                        (deprecated, use become)

    -b, --become run operations with become (does not imply password

                        prompting)

    --become-method=BECOME_METHOD

                        privilege escalation method to use (default=sudo),

                        valid choices: [ sudo | su | pbrun | pfexec | doas |

                        dzdo | ksu | runas | pmrun | enable | machinectl ]

    --become-user=BECOME_USER

                        run operations as this user (default=root)

    --ask-sudo-pass ask for sudo password (deprecated, use become)

    --ask-su-pass ask for su password (deprecated, use become)

    -K, --ask-become-pass

                        ask for privilege escalation password


Some modules do not make sense in Ad-Hoc (include, meta, etc)



相关内容

热门资讯

【第一财经】“微乐捉鸡麻将.怎... 网上科普关于“微乐捉鸡麻将有没有挂”话题很是火热,小编也是针对微乐捉鸡麻将作*弊开挂的方法以及开挂对...
今日重大发现“老友十三水.究竟... 家人们!今天小编来为大家解答老友十三水透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买...
重磅!全球首款,2nm手机芯片... 每经编辑|程鹏 向江林 手机芯片,进入2nm时代! 据财联社12月21日报道,三星在全球移动半导体...
终于懂了“微乐四川麻将.开挂神... 网上科普关于“微乐四川麻将有没有挂”话题很是火热,小编也是针对微乐四川麻将作*弊开挂的方法以及开挂对...
终于明白“新毛豆炸金花.是不是... 终于明白“新毛豆炸金花.是不是有挂?”必胜开挂神器您好,新毛豆炸金花这个游戏其实有挂的,确实是有挂的...
重磅消息“白金岛游戏.开挂神器... 重磅消息“白金岛游戏.开挂神器?”确实真的有挂您好,白金岛游戏这个游戏其实有挂的,确实是有挂的,需要...
【第一资讯】“新畅游互娱.到底... 有 亲,根据资深记者爆料新畅游互娱是可以开挂的,确实有挂(咨询软件无需打...
最新引进“开心游戏.到底有挂吗... 有 亲,根据资深记者爆料开心游戏是可以开挂的,确实有挂(咨询软件无需打开...
终于懂了“乐禧棋牌.开挂神器?... 您好:乐禧棋牌这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游戏...
今日重大消息“兴动竞赛.有挂吗... 您好:兴动竞赛这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9752949】很多玩家在这款游戏...