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)

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ansible_apply_role-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76e2d6137a6c442e652d097fdd000755b13ab20603dc4430b04c405955201ab3
MD5 7f52d4e17d3ae6d1e7db34ab431124a9
BLAKE2b-256 e11b8e41429100fb5e9dae7b5588aef48c309725656d032b829dea99cdab5a2d

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