Skip to main content

ansible_apply_role

Apply particular Ansible role(s) to host(s)

Installation

pip install ansible-apply-role

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"

Metadata

Release files for ansible-apply-role 0.1.1

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-role 0.1.1
File Size Uploaded
ansible_apply_role-0.1.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansible-apply-role 0.1.1
File Interpreter ABI Platform
ansible_apply_role-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / ansible_apply_role-0.1.1.tar.gz

Download URL ansible_apply_role-0.1.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c899cd1129170bbbfe5248fd6e878e9f81b1141298dda95d88e85895f9cb87e9
BLAKE2b-256 checksum
How to use checksums
7c2a1c771df3b6c570305a960f1c21cd8642e5283c57cc8972bcc7996b3829e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / ansible_apply_role-0.1.1-py3-none-any.whl

Download URL ansible_apply_role-0.1.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c50a18803bef7b895b98c3b4701a7bbaa48889de307b0af1eef426c6b046b19b
BLAKE2b-256 checksum
How to use checksums
0be5e0def2da3b09f334e25ac56c53d05d3af72fcba8e9f9a72becb398861d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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