From c3f6973c6dae0a0c3141da82483ef4cf623329f4 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 3 Sep 2021 11:31:08 +0300
Subject: [PATCH] Alias for running Ansible on all of my hosts.

Just for variety.
---
 .bashrc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.bashrc b/.bashrc
index 8436a4e..856f57c 100644
--- a/.bashrc
+++ b/.bashrc
@@ -166,6 +166,13 @@ alias wifi-portal='curl --silent --fail --write-out "%{redirect_url}" --output /
 alias yellow="printf '\e[1;93m%s\e[0m\n'"
 alias xargs="xargs "
 
+ansible_all () {
+    pushd ~/Repositories/Shore/homelab || return
+    ansible all "$@"
+    # shellcheck disable=SC2164
+    popd
+}
+
 ddg () {
     w3m "https://duckduckgo.com/lite/?q=$(echo "$@" | urlencode)"
 }
-- 
GitLab