A Lightweight and Flexible Ansible Command Line Tool.
Project description
Flook
A Lightweight and Flexible Ansible Command Line Tool.
To use flook, follow the following steps:
Create a python virtual environment or use system wide environment
$ python3 -m venv venv
$ source venv/bin/activate
Install flook package with pip.
$ pip install flook
Get flook command line help
$ flook --help
Init the config file and the sqlite database
$ flook config init
To edit configs
$ flook config init
Add a recipe
$ flook recipe add <recipe_name> -p <recipe_relative_path>
$ flook recipe add clivern/nginx -p recipe/nginx
To list recipes
$ flook recipe list
To get a recipe
$ flook recipe get <recipe_name>
To delete a recipe
$ flook recipe delete <recipe_name>
Add a host
$ flook host add <host_name> -i <host_ip> -p <ssh_port> -u <ssh_username> -s <ssh_key_path>
$ flook host add example.com -i 127.0.0.1 -p 22 -u root -s /Users/root/.ssh/id_rsa.pem
To list hosts
$ flook host list
To get a host
$ flook host get <host_name>
To delete a host
$ flook host delete <host_name>
Run a recipe towards a host
$ flook recipe run <recipe_name> -h <host_name>
$ flook recipe run clivern/nginx -h example.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flook-0.3.1.tar.gz
(18.3 kB
view hashes)
Built Distribution
flook-0.3.1-py3-none-any.whl
(25.5 kB
view hashes)