https://github.com/brennerm/ansible-exec
Runs your roles and tasks without the need for a playbook
https://github.com/brennerm/ansible-exec
ansible
Last synced: 5 months ago
JSON representation
Runs your roles and tasks without the need for a playbook
- Host: GitHub
- URL: https://github.com/brennerm/ansible-exec
- Owner: brennerm
- License: mit
- Created: 2017-03-23T22:44:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T17:24:17.000Z (over 8 years ago)
- Last Synced: 2025-09-21T07:12:44.591Z (10 months ago)
- Topics: ansible
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-exec [](https://travis-ci.org/brennerm/ansible-exec)
Runs your playbooks, roles and tasks
## Installation
- From source code
```
git clone https://github.com/brennerm/ansible-exec
cd ansible-exec
python setup.py install
```
- With pip
```
pip install ansible-exec
```
## Usage
### Playbook
```
# playbook.yml
---
- hosts: all
tasks:
- name: Install apache2
apt:
name: apache2
state: present
$ ansible-exec webserver.example.com playbook.yml -- -u root -k
```
### Role
```
- apache2_install/
tasks/
main.yml
defaults/
main.yml
README
# tasks/main.yml
---
- name: Install apache2
apt:
name: apache2
state: present
$ ansible-exec webserver.example.com apache2_install/ -- -u root -k
```
### Tasks
```
# tasks.yml
---
- name: Install apache2
apt:
name: apache2
state: present
$ ansible-exec webserver.example.com tasks.yml -- -u root -k
```