Skip to content

brennerm/ansible-exec

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ansible-exec Build Status

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

About

Runs your roles and tasks without the need for a playbook

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages