Skip to main content

ansible-apply: apply remote tasks, supports command line inventory

Project description

Ansible-apply takes the tasks file spec as first argument:

ansible-apply role.name
ansible-apply role.name/some_tasks
ansible-apply https://some/playbook.yml
ansible-apply ./playbook.yml

It will automatically download the playbook or role if not found.

Then, the command takes any number of hosts and inventory variables on the command line:

ansible-apply role.name server1 server2 update=true

Finnaly, any argument passed with dashes are forwarded to the ansible-playbook command it generates, but named args must use the = notation, and not a space to not confuse the command line parser:

# works:
ansible-apply role.name server2 update=true --become-user=root
# does not:
ansible-apply role.name server2 update=true --become-user root

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bigsudo-0.1.2.post6.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file bigsudo-0.1.2.post6.tar.gz.

File metadata

  • Download URL: bigsudo-0.1.2.post6.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for bigsudo-0.1.2.post6.tar.gz
Algorithm Hash digest
SHA256 f13bab58c48128fcf3bdb1bb6bbb2f23937230050556e6f0282f35d4c4109791
MD5 86e0b280f8c190648b3e4b27d985ce10
BLAKE2b-256 bee04d58aa0a1b43a5cb9558b0636d36a5607b2438ecc434a1f4c0802026c1cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page