Skip to main content

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

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

Release files for ansible-apply 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansible-apply 0.1.2
File Size Uploaded
ansible-apply-0.1.2.tar.gz 1.7 kB Details

Release files / ansible-apply-0.1.2.tar.gz

Download URL ansible-apply-0.1.2.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4f07ccd308c05a57d82caada9af01d5a5c43bdc0909ed21bd469cc5df8647a55
BLAKE2b-256 checksum
How to use checksums
bf334e5829dfb0c64b2b4f4b24a0f0792133e03cdb950ea5dcccc831d75a2a52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page