EnglishFrenchSpanish

Ad


OnWorks favicon

ansible-pull - Online in the Cloud

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

This is the command ansible-pull 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-pull - pull playbooks from VCS server and run them using this machine as the
target.

SYNOPSIS


ansible-pull -U URL [options] [ <filename.yml> ]

DESCRIPTION


Ansible is an extra-simple tool/framework/API for doing 'remote things'.

Use ansible-pull to set up a remote copy of ansible on each managed node, each set to run
via cron and update playbook source via a source repository. This inverts the default push
architecture of ansible into a pull architecture, which has near-limitless scaling
potential.

The setup playbook can be tuned to change the cron frequency, logging locations, and
parameters to ansible-pull.

This is useful both for extreme scale-out as well as periodic remediation. Usage of the
fetch module to retrieve logs from ansible-pull runs would be an excellent way to gather
and analyze remote logs from ansible-pull.

OPTIONAL ARGUMENT


filename.yml
The name of one the YAML format files to run as an ansible playbook. This can be a
relative path within the checkout. If not provided, ansible-pull will look for a
playbook based on the host’s fully-qualified domain name, on the host hostname and
finally a playbook named local.yml.

OPTIONS


--accept-host-key
Adds the hostkey for the repo URL if not already added.

--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.

-C CHECKOUT, --checkout=CHECKOUT
Branch/Tag/Commit to checkout. If not provided, uses default behavior of module used
to check out playbook repository.

-d DEST, --directory=DEST
Directory to checkout repository into. If not provided, a subdirectory of
~/.ansible/pull/ will be used.

-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, --force
Force running of playbook even if unable to update playbook repository. This can be
useful, for example, to enforce run-time state when a network connection may not
always be up or possible.

--full
Do a full clone of the repository. By default ansible-pull will do a shallow clone
based on the last revision.

-h, --help
Show the 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,.

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

-m NAME, --module-name=NAME
Module used to checkout playbook repository. Defaults to git.

-o, --only-if-changed
Only run the playbook if the repository has been updated.

--purge
Purge the checkout after the playbook is run.

-s SLEEP, --sleep=SLEEP
Sleep for random interval (between 0 and SLEEP number of seconds) before starting.
This is a useful way ot disperse git requests.

--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.

-t TAGS, --tags=TAGS
Only run plays and tasks tagged with these values.

-U URL, --url=URL
URL of the playbook repository to checkout.

--vault-password-file=VAULT_PASSWORD_FILE
Vault password file.

-v, --verbose
Pass -vvv to ansible-playbook.

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-pull online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 2
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 3
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 4
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 5
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 6
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • More »

Linux commands

  • 1
    abi-tracker
    abi-tracker
    abi-tracker - visualize ABI changes
    timeline of a C/C++ software library.
    DESCRIPTION: NAME: ABI Tracker
    (abi-tracker) Visualize ABI changes
    timeline of a C/C+...
    Run abi-tracker
  • 2
    abicheck
    abicheck
    abicheck - check application binaries
    for calls to private or evolving symbols
    in libraries and for static linking of
    some system libraries. ...
    Run abicheck
  • 3
    couriermlm
    couriermlm
    couriermlm - The Courier mailing list
    manager ...
    Run couriermlm
  • 4
    couriertcpd
    couriertcpd
    couriertcpd - the Courier mail server
    TCP server daemon ...
    Run couriertcpd
  • 5
    gbklatex
    gbklatex
    bg5latex - Use LaTeX directly on a Big5
    encodedtex file bg5pdflatex - Use
    pdfLaTeX directly on a Big5 encodedtex
    file bg5+latex - Use LaTeX directly on a
    Big5+...
    Run gbklatex
  • 6
    gbkpdflatex
    gbkpdflatex
    bg5latex - Use LaTeX directly on a Big5
    encodedtex file bg5pdflatex - Use
    pdfLaTeX directly on a Big5 encodedtex
    file bg5+latex - Use LaTeX directly on a
    Big5+...
    Run gbkpdflatex
  • More »

Ad