Ansible Collection - kraktorist.figlet

Figlet module. Ansible fodule for famous http://www.figlet.org/ program.

    ______ _____ _____ _      _
   |  ____|_   _/ ____| |    | |
   | |__    | || |  __| | ___| |_
   |  __|   | || | |_ | |/ _ \ __|
   | |     _| || |__| | |  __/ |_
   |_|    |_____\_____|_|\___|\__|

Dependencies

pip install pyfiglet

https://github.com/pwaller/pyfiglet

Installation

ansible-galaxy collection install git+https://github.com/Kraktorist/ansible-figlet.git

or

# requirements.yaml

collections:
  - name: https://github.com/Kraktorist/ansible-figlet.git
    type: git
    version: master
ansible-galaxy install -r requirements.yml

Usage

- name: transform the text
  kraktorist.figlet.figlet:
    name: 'Lorem Ipsum'
    font: "lean"
    width: 120
    direction: 1
    justify: left
  register: testout
- name: dump the text
  debug:
    msg: '{{ testout }}'

Output

ok: [localhost] => 
  msg:
    changed: true
    failed: false
    message: |2-
  
          _/                                                          _/_/_/
         _/          _/_/    _/  _/_/    _/_/    _/_/_/  _/_/          _/    _/_/_/      _/_/_/  _/    _/  _/_/_/  _/_/
        _/        _/    _/  _/_/      _/_/_/_/  _/    _/    _/        _/    _/    _/  _/_/      _/    _/  _/    _/    _/
       _/        _/    _/  _/        _/        _/    _/    _/        _/    _/    _/      _/_/  _/    _/  _/    _/    _/
      _/_/_/_/    _/_/    _/          _/_/_/  _/    _/    _/      _/_/_/  _/_/_/    _/_/_/      _/_/_/  _/    _/    _/

Examples

See examples/testmod.yml for another example