Metadata-Version: 2.4
Name: ansible_apply_role
Version: 0.1.0
Summary: Apply particular Ansible role(s) to host(s)
Author-email: spike <spike@fedoraproject.org>
License-Expression: GPL-2.0-or-later
Project-URL: Homepage, https://gitlab.com/spike77453/ansible_apply_role
Project-URL: Repository, https://gitlab.com/spike77453/ansible_apply_role.git
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: System
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: jinja2~=3.1

# 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"
```
