Skip to main content

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

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible_apply_role-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible_apply_role-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ansible_apply_role-0.1.1.tar.gz.

File metadata

  • Download URL: ansible_apply_role-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for ansible_apply_role-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c899cd1129170bbbfe5248fd6e878e9f81b1141298dda95d88e85895f9cb87e9
MD5 606cad2decd3ea6af8f66380c30923ac
BLAKE2b-256 7c2a1c771df3b6c570305a960f1c21cd8642e5283c57cc8972bcc7996b3829e4

See more details on using hashes here.

File details

Details for the file ansible_apply_role-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ansible_apply_role-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c50a18803bef7b895b98c3b4701a7bbaa48889de307b0af1eef426c6b046b19b
MD5 77559a2c4eaf40d43a467e58a8f29c9b
BLAKE2b-256 0be5e0def2da3b09f334e25ac56c53d05d3af72fcba8e9f9a72becb398861d7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page