Apply particular Ansible role(s) to host(s)
Project description
ansible_apply_role
Apply particular Ansible role(s) to host(s)
Usage
usage: ansible_apply_role [-h] --hostpattern HOSTPATTERN
--roles ROLES [ROLES ...]
[--gather_facts GATHER_FACTS]
[--ansible_playbook_args ANSIBLE_PLAYBOOK_ARGS [ANSIBLE_PLAYBOOK_ARGS ...]]
[--show-playbook]
[--tempfile-directory TEMPFILE_DIRECTORY]
options:
-h, --help show this help message and exit
--hostpattern HOSTPATTERN
Ansible host pattern
--roles ROLES [ROLES ...]
List of roles to apply
--gather_facts GATHER_FACTS
Enable or disable gathering of ansible facts before
applying roles (default: False)
--ansible_playbook_args ANSIBLE_PLAYBOOK_ARGS [ANSIBLE_PLAYBOOK_ARGS ...]
Additional argument to pass on to 'ansible-playbook'
executable (default: [])
--show-playbook Print resulting playbook and exit (default: False)
--tempfile-directory TEMPFILE_DIRECTORY
Directory in which temporary playbook will be created
(default: $PWD)
Example
ansible_apply_role \
--hostpattern lb-west.example.com \
--roles test \
--ansible_playbook_args="--check"
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansible_apply_role-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ansible_apply_role-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76e2d6137a6c442e652d097fdd000755b13ab20603dc4430b04c405955201ab3
|
|
| MD5 |
7f52d4e17d3ae6d1e7db34ab431124a9
|
|
| BLAKE2b-256 |
e11b8e41429100fb5e9dae7b5588aef48c309725656d032b829dea99cdab5a2d
|