Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
# Not extensively tested | |
# Put this script in the action_plugins directory of your playbook directory | |
# If you have issues, please report it in the comments (or fork and fix) | |
# Usage: | |
# - name: "Ask the user if we should continue." | |
# action: ask_key prompt="Continue? Yes / No / Random (y/n/r)?" accepted_keys="['y', 'n', 'r']" | |
# register: answer | |
# | |
# The pressed key is now in answer.key |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |