Ansible Role tools
This role ensures that some additional tools are installed and the Bash environment is configured.
Tools that this role installs:
- bash-completion 
- cloud-guest-utils on Debian, cloud-utils-growpart on RHEL 
- jq 
- lsof 
- nano 
- rsync 
- sudo 
- tmux 
- vim 
- wget 
This role sets some new Bash alias for:
- dmesg 
- poweroff 
- reboot 
- whatismyip 
Bash:
- export EDITOR 
- HISTSIZE=100000 
- HISTTIMEFORMAT=“%Y-%m-%d %T $USER $SUDO_USER „ 
- Colorizes the Bash prompt and sets it to something like - [17:30:19 user@server Rocky8 ~]$
Mandatory Requirements
- On RHEL-compatible systems, enable the EPEL repository. This can be done using the linuxfabrik.lfops.repo_epel role. 
Optional Role Variables
| Variable | Description | Default Value | 
|---|---|---|
| 
 | Set the standard editor, for example for editing crontabs. | 
 | 
| 
 | The URL of the Icinga2 API (usually on the Icinga2 Master). This will be used to set a downtime for the corresponding host and all its services in the  | `‘https://{{ icinga2_agent__icinga2_master_host | 
| 
 | The Icinga2 API User to set the downtime for the corresponding host and all its services in the  | unset | 
| 
 | The hostname of the Icinga2 host on which the downtime should be set. | 
 | 
| 
 | Set a custom primary prompt for bash. This is displayed before each command. | * green, if the host is in an Ansible group called  | 
| 
 | Boolean. Set to  | 
 | 
Example:
# optional
tools__editor: 'vim'
tools__icinga2_api_url: 'https://icinga.example.com:5665'
tools__icinga2_api_user_login:
  username: 'downtime-user'
  password: 'linuxfabrik'
tools__icinga2_hostname: 'myhost.example.com'
tools__prompt_ps1: '[\[\033[0;34m\]\$(date +%H:%M:%S) \u@\h \w$NO_COLOR]\$ '
tools__prompt_use_fqdn: true