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
Release history Release notifications | RSS feed
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.post11.tar.gz
(1.6 kB
view details)
File details
Details for the file bigsudo-0.1.2.post11.tar.gz
.
File metadata
- Download URL: bigsudo-0.1.2.post11.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6488e4f517832b29f5dba1004f894d21a73ddc09943a11069fd5a83282c4d7 |
|
MD5 | a7af318586d8f10567fb9f28bc41c79c |
|
BLAKE2b-256 | dd691341746748c054b7e3a05466e04478e8dee2bdcef313919dfbbf68aee115 |