Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mrk21/ansible-lib
- Owner: mrk21
- License: mit
- Created: 2014-04-07T06:03:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-01T05:50:40.000Z (over 10 years ago)
- Last Synced: 2024-10-13T13:36:33.762Z (2 months ago)
- Topics: ansible, python
- Language: Python
- Size: 328 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
```