No results
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
converter (Bash-Scripts to Ansible)
Location: Bash-Scripts to Ansible/converter/
Playbooks for ASCII art generation and image-to-sixel conversion (for use with fastfetch). Both run on localhost only.
Playbooks
1. ascii-generator.yml
Generates ASCII art text files using figlet and an ANSI Shadow–style font.
- Installs figlet if missing.
- Ensures the figlet font directory exists and downloads the ANSI Shadow font if not present.
- Creates an output directory (default:
~/ascii-art). - Generates one
.txtfile per line of text intextInput(e.g. "Spoljarevic", "Who2Industries", "Stay private. Stay root.").
Customisation: Edit the vars section (e.g. textInput, ascii_output_dir, figlet_font_file, figlet_font_url).
Run:
ansible-playbook "Bash-Scripts to Ansible/converter/ascii-generator.yml" -K
2. sixel-converter.yml
Converts an image to sixel format for fastfetch and places it in ~/.config/fastfetch/assets/.
- Installs chafa via pacman (Arch).
- Prompts for: file name (without extension), file type, and width (size).
- Converts the image to sixel and writes
<name>.sixelin the assets folder. - Prints a ready-to-use
fastfetchcommand with--raw,--logo-width,--logo-height, and--logo-padding-top.
Run:
ansible-playbook "Bash-Scripts to Ansible/converter/sixel-converter.yml"
You will be prompted for the file name, type, and size. Use -K if the playbook needs to install packages.
Files
| File | Purpose |
|---|---|
| ascii-generator.yml | Figlet-based ASCII art generation. |
| sixel-converter.yml | Chafa image→sixel for fastfetch. |
| inventory.ini | [local] with localhost and ansible_connection=local. |