Skip to main content
PyPI-Server Build Status

Flook

A Lightweight and Flexible Ansible Command Line Tool.

To use flook, follow the following steps:

  1. Create a python virtual environment or use system wide environment

$ python3 -m venv venv
$ source venv/bin/activate
  1. Install flook package with pip.

$ pip install flook
  1. Get flook command line help

$ flook --help
  1. Init the config file and the sqlite database

$ flook config init
  1. To edit configs

$ flook config init
  1. Add a recipe

$ flook recipe add <recipe_name> -p <recipe_relative_path>

# Some examples
$ flook recipe add clivern/ping -p recipe/ping -f
$ flook recipe add clivern/nginx -p recipe/nginx -f
$ flook recipe add clivern/motd -p recipe/motd -f
  1. To list recipes

$ flook recipe list

# Get recipes as a JSON
$ flook recipe list -o json | jq .
  1. To get a recipe

$ flook recipe get <recipe_name>
  1. To delete a recipe

$ flook recipe delete <recipe_name>
  1. Add a host

$ flook host add <host_name> -i <host_ip> -p <ssh_port> -u <ssh_username> -s <ssh_key_path>

# Add a remote host
$ flook host add example.com -i 127.0.0.1 -p 22 -u root -s /Users/root/.ssh/id_rsa.pem

# Add the localhost
$ flook host add localhost -i localhost -c local
  1. To list hosts

$ flook host list

# Get hosts as a JSON
$ flook host list -o json | jq .
  1. To get a host

$ flook host get <host_name>
  1. To SSH into a host

$ flook host ssh <host_name>
  1. To delete a host

$ flook host delete <host_name>
  1. Run a recipe towards a host

$ flook recipe run <recipe_name> -h <host_name>

# Some examples
$ flook recipe run clivern/nginx -h example.com
$ flook recipe run clivern/ping -h localhost

Release files for flook 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flook 0.4.1
File Size Uploaded
flook-0.4.1.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flook 0.4.1
File Interpreter ABI Platform
flook-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 44.7 kB

Release files / flook-0.4.1.tar.gz

Download URL flook-0.4.1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
604be749aaa568c3dfdb39650c3f9aed8138f6dde587c49e8ef546bdf7e307d8
BLAKE2b-256 checksum
How to use checksums
663188af9624541b9fd3c5560ef3f5204517a62bef3ed1974072bf08758edce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / flook-0.4.1-py3-none-any.whl

Download URL flook-0.4.1-py3-none-any.whl
Size 25.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
035d99a154226184fd5b0b9766d0503ec04168a9e2d065e03072517e3efbf607
BLAKE2b-256 checksum
How to use checksums
4c09e689fa33d5dbb05d2ad1654ac30c8fd22a41548ab64ccb4d11447e15a7c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page