| command | description |
|---|---|
| ctrl + a | Goto BEGINNING of command line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ara-task-uniq-hosts () { | |
| # Scans across all tasks within 1 million records and returns all of the unique hosts where the task | |
| # meets a certain state. Default state is "ok" | |
| # When looking for the "changed" state the special CLI modifier is used. | |
| TASK_NAME=$1 | |
| TASK_STATE=${2:-ok} | |
| if [ ${TASK_STATE} == "changed" ]; then | |
| TASK_MODIFY="--changed" | |
| else | |
| TASK_MODIFY="--status ${TASK_STATE}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ansible tag_type_web -b -m shell -a 'awk "{print \$9}" /var/log/nginx/access.log | sort | uniq -c | sort -k1,1nr 2>/dev/null | column -t' |
