Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msabramo/ansible_role_apply
Apply a single Ansible role to host(s) easily
https://github.com/msabramo/ansible_role_apply
Last synced: about 1 month ago
JSON representation
Apply a single Ansible role to host(s) easily
- Host: GitHub
- URL: https://github.com/msabramo/ansible_role_apply
- Owner: msabramo
- License: mit
- Created: 2015-07-05T17:58:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-06T18:46:09.000Z (over 9 years ago)
- Last Synced: 2024-10-09T14:13:35.580Z (about 1 month ago)
- Language: Python
- Size: 148 KB
- Stars: 19
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
ansible-role-apply
==================Apply a single Ansible role to host(s) easily
Example usage
-------------.. code-block:: bash
$ ansible-role-apply --help
Usage: ansible-role-apply [OPTIONS] ROLE HOSTSOptions:
-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
-------------------------------------------------------------------------------
...
PLAY [vagrant] ****************************************************************
...
PLAY RECAP ********************************************************************
vagrant : ok=16 changed=1 unreachable=0 failed=0