From ca27374681e63cb224c5a9752810ddfd61808a73 Mon Sep 17 00:00:00 2001 From: Isaac Johnson Date: Tue, 6 Oct 2026 06:16:50 -0500 Subject: [PATCH] change to bash over built in pip install in the playbook --- awx/serverless_pricing_cheapest.csv | 4 ++++ awx/uptime_app.yaml | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 awx/serverless_pricing_cheapest.csv diff --git a/awx/serverless_pricing_cheapest.csv b/awx/serverless_pricing_cheapest.csv new file mode 100644 index 0000000..460851b --- /dev/null +++ b/awx/serverless_pricing_cheapest.csv @@ -0,0 +1,4 @@ +Cloud Provider,Cost per CPU-Hour (USD) +AWS,0.03238 +Azure,0.05710 +GCP,0.06480 diff --git a/awx/uptime_app.yaml b/awx/uptime_app.yaml index f80d033..ed42d6a 100644 --- a/awx/uptime_app.yaml +++ b/awx/uptime_app.yaml @@ -23,9 +23,11 @@ # 1. Local Prerequisites # ------------------------------------------------------------- - name: Ensure uptime-kuma-api Python library is installed locally - ansible.builtin.pip: - name: uptime-kuma-api - state: present + ansible.builtin.shell: | + python3 -m pip --version >/dev/null 2>&1 || python3 -m ensurepip --user + python3 -m pip install --user uptime-kuma-api + register: pip_install + changed_when: "'Successfully installed' in pip_install.stdout" # ------------------------------------------------------------- # 2. Allocate Static Public IP (Idempotent)