EnglishFrenchSpanish

Ad


OnWorks favicon

ansible - Online in the Cloud

Run ansible in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ansible that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


ansible - run a task on a target host(s)

SYNOPSIS


ansible <host-pattern> [-m module_name] [-a args] [options]

DESCRIPTION


Ansible is an extra-simple tool/framework/API for doing 'remote things'. This is the adhoc
command that allows for a 'single task playbook' run.

ARGUMENTS


host-pattern
A name of a group in the inventory, a shell-like glob selecting hosts in inventory or
any combination of the two separated by commas.

OPTIONS


-a 'ARGUMENTS', --args='ARGUMENTS'
The ARGUMENTS to pass to the module.

--ask-become-pass
Ask for privilege escalation password.

-k, --ask-pass
Prompt for the connection password, if it is needed for the transport used. For
example, using ssh and not having a key-based authentication with ssh-agent.

--ask-su-pass
Prompt for su password, used with --su (deprecated, use become).

-K, --ask-sudo-pass
Prompt for the password to use with --sudo, if any (deprecated, use become).

--ask-vault-pass
Prompt for vault password.

-B NUM, --background=NUM
Run commands in the background, killing the task after NUM seconds.

--become-method=BECOME_METHOD
Privilege escalation method to use (default=sudo), valid choices: [ sudo | su | pbrun
| pfexec | runas | doas ]

--become-user=BECOME_USER
Run operations as this user (default=root).

-C, --check
Do not make any changes on the remote system, but test resources to see what might
have changed. Note this can not scan all possible resource types and is only a
simulation.

-c CONNECTION, --connection=CONNECTION
Connection type to use. Most common options are paramiko (SSH), ssh, winrm and local.
local is mostly useful for crontab or kickstarts.

-e EXTRA_VARS, --extra-vars='EXTRA_VARS
Extra variables to inject into a playbook, in key=value key=value format or as quoted
YAML/JSON (hashes and arrays). To load variables from a file, specify the file
preceded by @ (e.g. @vars.yml).

-f NUM, --forks=NUM
Level of parallelism. NUM is specified as an integer, the default is 5.

-h, --help
Show help message and exit.

-i PATH, --inventory=PATH
The PATH to the inventory, which defaults to /etc/ansible/hosts. Alternatively you can
use a comma separated list of hosts or single host with traling comma host,.

-l SUBSET, --limit=SUBSET
Further limits the selected host/group patterns. You can prefix it with ~ to indicate
that the patter in a regex.

--list-hosts
Outputs a list of matching hosts; does not execute anything else.

-m NAME, --module-name=NAME
Execute the module called NAME.

-M DIRECTORY, --module-path=DIRECTORY
The DIRECTORY search path to load modules from. The default is /usr/share/ansible.
This can also be set with the ANSIBLE_LIBRARY environment variable.

-o, --one-line
Try to output everything on one line.

-P NUM, --poll=NUM
Poll a background job every NUM seconds. Requires -B.

--private-key=PRIVATE_KEY_FILE
Use this file to authenticate the connection.

-S, --su
Run operations with su (deprecated, use become).

-R SU_USER, --se-user=SUDO_USER
Run operations with su as this user (default=root) (deprecated, use become).

-s, --sudo
Run the command as the user given by -u and sudo to root (deprecated, use become).

--ssh-common-args='-o ProxyCommand="ssh -W %h:%p ..." ...'
Add the specified arguments to any sftp/scp/ssh command-line. Useful to set a
ProxyCommand to use a jump host, but any arguments that are accepted by all three
programs may be specified.

--sftp-extra-args='-f ...'
Add the specified arguments to any sftp command-line.

--scp-extra-args='-l ...'
Add the specified arguments to any scp command-line.

--ssh-extra-args='-R ...'
Add the specified arguments to any ssh command-line.

-U SUDO_USERNAME, --sudo-user=SUDO_USERNAME
Sudo to SUDO_USERNAME default is root. (deprecated, use become).

-t DIRECTORY, --tree=DIRECTORY
Save contents in this output DIRECTORY, with the results saved in a file named after
each host.

-T SECONDS, --timeout=SECONDS
Connection timeout to use when trying to talk to hosts, in SECONDS.

-u USERNAME, --user=USERNAME
Use this USERNAME to login to the target host, instead of the current user.

--vault-password-file=VAULT_PASSWORD_FILE
A file containing the vault password to be used during the decryption of vault
encrypted files. Be sure to keep this file secured if it is used. If the file is
executable, it will be run and its standard output will be used as the password.

-v, --verbose
Verbose mode, more output from successful actions will be shown. Give up to three
times for more output.

--version
Show program version number and exit.

INVENTORY


Ansible stores the hosts it can potentially operate on in an inventory. This can be an
ini-like file, a script, directory or a list. The ini syntax is one host per line. Groups
headers are allowed and are included on their own line, enclosed in square brackets that
start the line.

Ranges of hosts are also supported. For more information and additional options, see the
documentation on http://docs.ansible.com/.

ENVIRONMENT


The following environment variables may be specified.

ANSIBLE_INVENTORY — Override the default ansible inventory file

ANSIBLE_LIBRARY — Override the default ansible module library path

ANSIBLE_CONFIG — Override the default ansible config file

Many more are available for most options in ansible.cfg

Use ansible online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OrangeFox
    OrangeFox
    Fork of TeamWinRecoveryProject(TWRP)
    with many additional functions, redesign
    and more Features:Supports Treble and
    non-Treble ROMsUp-to-date Oreo kernel,
    built...
    Download OrangeFox
  • 2
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • 3
    Clementine
    Clementine
    Clementine is a multi-platform music
    player and library organizer inspired by
    Amarok 1.4. It has a fast and
    easy-to-use interface, and allows you to
    search and ...
    Download Clementine
  • 4
    XISMuS
    XISMuS
    ATTENTION: Cumulative update 2.4.3 has
    been released!! The update works for any
    previous 2.x.x version. If upgrading
    from version v1.x.x, please download and
    i...
    Download XISMuS
  • 5
    facetracknoir
    facetracknoir
    Modular headtracking program that
    supports multiple face-trackers, filters
    and game-protocols. Among the trackers
    are the SM FaceAPI, AIC Inertial Head
    Tracker ...
    Download facetracknoir
  • 6
    PHP QR Code
    PHP QR Code
    PHP QR Code is open source (LGPL)
    library for generating QR Code,
    2-dimensional barcode. Based on
    libqrencode C library, provides API for
    creating QR Code barc...
    Download PHP QR Code
  • 7
    Cuckoo Sandbox
    Cuckoo Sandbox
    Cuckoo Sandbox uses components to
    monitor the behavior of malware in a
    Sandbox environment; isolated from the
    rest of the system. It offers automated
    analysis o...
    Download Cuckoo Sandbox
  • More »

Linux commands

  • 1
    acl_gran
    acl_gran
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    kern...
    Run acl_gran
  • 2
    acl_grant
    acl_grant
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    kern...
    Run acl_grant
  • 3
    cpupower-idle-set
    cpupower-idle-set
    cpupower idle-set - Utility to set cpu
    idle state specific kernel options
    SYNTAX: cpupower [ -c cpulist ]
    idle-info [options] DESCRIPTION: The
    cpupower idle-se...
    Run cpupower-idle-set
  • 4
    cpupower-info
    cpupower-info
    cpupower-info - Shows processor power
    related kernel or hardware
    configurations ...
    Run cpupower-info
  • 5
    g15daemon
    g15daemon
    g15daemon - provides access to extra
    keys and the LCD available on the
    logitech G15 keyboard. DESCRIPTION:
    G15Daemon allows users access to all
    extra keys by d...
    Run g15daemon
  • 6
    g15ladi
    g15ladi
    laditools - tools to control and
    monitor LADI (JACK and ladish) systems ...
    Run g15ladi
  • More »

Ad