:::: MENU ::::
Monthly Archives: November 2015

redis CLI cheat sheet

List all keys
keys *
Delete all keys
List all values of a list
lrange list_key_name 0 -1

show all set members
smembers set_key_name

find the name of ethernet interface in ansible

you have to use the fact: ansible_default_ipv4.interface

– name: “set the fact for the name of default eth”
set_fact: eth_name={{ansible_default_ipv4.interface}}
– debug: var=eth_name