Skip to main content

Apply a single Ansible role to host(s) easily

Project description

Apply a single Ansible role to host(s) easily

Example usage

$ ansible-role-apply --help
Usage: ansible-role-apply [OPTIONS] ROLE HOSTS

Options:
  -s, --sudo / --no-sudo
  --show-playbook / --no-show-playbook
  --help                          Show this message and exit.

$ ansible-role-apply docker vagrant --sudo
...
PLAY [vagrant] ****************************************************************

GATHERING FACTS ***************************************************************
ok: [vagrant]
...
PLAY RECAP ********************************************************************
vagrant                    : ok=16   changed=1    unreachable=0    failed=0

$ ansible-role-apply docker vagrant --sudo --show-playbook
-------------------------------------------------------------------------------
#!/usr/bin/env ansible-playbook
---
- hosts:
    - vagrant
  roles:
    - docker
  sudo: True
-------------------------------------------------------------------------------

|---> plugin activated: /Users/marca/dev/surveymonkey/smstack/smstack/ansible/plugins/no_hosts_matched_fail.pyc
|---> plugin activated: /Users/marca/dev/surveymonkey/smstack/smstack/ansible/plugins/sm_app_role.pyc
|---> plugin activated: /Users/marca/dev/surveymonkey/smstack/smstack/ansible/plugins/teamcity_messages.pyc

PLAY [vagrant] ****************************************************************
...
PLAY RECAP ********************************************************************
vagrant                    : ok=16   changed=1    unreachable=0    failed=0

Project details


Download files

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

Files for ansible_role_apply, version 0.0.0
Filename, size File type Python version Upload date Hashes
Filename, size ansible_role_apply-0.0.0.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page