Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrk21/ansible-lib

Ansible module libraries.
https://github.com/mrk21/ansible-lib

ansible python

Last synced: about 1 month ago
JSON representation

Ansible module libraries.

Awesome Lists containing this project

README

        

ansible-lib
===========

Ansible module libraries.

## Installation

Clone this repository into your project's `library` directory:

```bash
$ cd /path/to/your-project/
$ mkdir -p library/
$ cd library/
$ git clone https://github.com/mrk21/ansible-lib.git
```

## Usage

* [http_wait_for](#http_wait_for)
* [firebrew](#firebrew)

### http\_wait\_for

Waits the HTTP request for a condition before continuing.

#### Options

| parameter | required | default | choices | comments |
| --------- | -------- | ------- | ------- | ---------|
| host | no | 127.0.0.1 | | Hostname |
| port | no | 80 or 443 | | Port |
| path | no | / | | Path |
| ssl | no | no | yes, no | Using SSL |
| status | no | 200 | | OK status |
| interval | no | 3 | | Access interval (sec) |
| timeout | no | 60 | | Time out (sec) |

#### Examples

Install Jenkins Git Plugin:

```yaml
---
- name: start jenkins server
command: java -jar jenkins.war

- http_wait_for: port=8080 timeout=300

- name: install git plugin
command: java -jar jenkins-cli.jar -s http://127.0.0.1:8080 install-plugin git

- name: restart jenkins server
command: java -jar jenkins-cli.jar -s http://127.0.0.1:8080 safe-restart

- http_wait_for: port=8080 timeout=300
```

### firebrew

Manage the Firefox Add-ons.

*see: [mrk21/firebrew](https://github.com/mrk21/firebrew "mrk21/firebrew")*

#### Options

| parameter | required | default | choices | comments |
| --------- | -------- | ------- | ------- | ---------|
| name | yes | | | Extension name |
| state | no | present | present, absent | Install or Uninstall |
| base\_dir | no | | | The profiles.ini path |
| profile | no | | | Target profile name |
| firefox | no | | | The Firefox command path |

#### Examples

```yaml
---
- name: install Vimperator
firebrew: name=Vimperator state=present

- name: uninstall Japanese Language Pack
firebrew: name='Japanese Language Pack' state=absent
```