Skip to content

mrk21/ansible-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-lib

Ansible module libraries.

Installation

Clone this repository into your project's library directory:

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

Usage

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:

---
- 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

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

---
- name: install Vimperator
  firebrew: name=Vimperator state=present
  
- name: uninstall Japanese Language Pack
  firebrew: name='Japanese Language Pack' state=absent

About

Ansible module libraries.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages