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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ansible_role_apply-0.0.0.tar.gz
.
File metadata
- Download URL: ansible_role_apply-0.0.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69e9924e96af71ff4be969b60437935dbdde974669321e6eff81c26249168fe3 |
|
MD5 | 4975aa5a577f58f03e69a7af69cd3159 |
|
BLAKE2b-256 | f04c9e57d5279deb76d7cd57444abd50caffaacae98eff5a4d7a8ad8c3872f26 |