From 42e18c7e937682cb08b7a9d7ba73271a017518ca Mon Sep 17 00:00:00 2001 From: Isaac Johnson Date: Tue, 6 Oct 2026 09:54:45 -0500 Subject: [PATCH] remove debug, just leave funcitonal lines --- awx/uptime_app.yaml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/awx/uptime_app.yaml b/awx/uptime_app.yaml index 491db84..2bc91f7 100644 --- a/awx/uptime_app.yaml +++ b/awx/uptime_app.yaml @@ -40,17 +40,10 @@ ansible.builtin.shell: executable: /bin/bash cmd: | - set -x - source /home/builder/.bashrc - export - whoami - which gcloud # The next line updates PATH for the Google Cloud SDK. if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi # The next line enables shell command completion for gcloud. if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi - - which gcloud gcloud compute addresses describe {{ static_ip_name }} \ --region={{ gcp_region }} \ --project={{ gcp_project }} @@ -62,6 +55,10 @@ ansible.builtin.shell: executable: /bin/bash cmd: | + # The next line updates PATH for the Google Cloud SDK. + if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi + # The next line enables shell command completion for gcloud. + if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi gcloud compute addresses create {{ static_ip_name }} \ --region={{ gcp_region }} \ --project={{ gcp_project }} \ @@ -75,6 +72,10 @@ ansible.builtin.shell: executable: /bin/bash cmd: | + # The next line updates PATH for the Google Cloud SDK. + if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi + # The next line enables shell command completion for gcloud. + if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi gcloud compute firewall-rules describe {{ firewall_rule_name }} \ --project={{ gcp_project }} register: fw_check @@ -85,6 +86,10 @@ ansible.builtin.shell: executable: /bin/bash cmd: | + # The next line updates PATH for the Google Cloud SDK. + if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi + # The next line enables shell command completion for gcloud. + if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi gcloud compute firewall-rules create {{ firewall_rule_name }} \ --project={{ gcp_project }} \ --allow=tcp:3001 \ @@ -100,6 +105,10 @@ ansible.builtin.shell: executable: /bin/bash cmd: | + # The next line updates PATH for the Google Cloud SDK. + if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi + # The next line enables shell command completion for gcloud. + if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi gcloud compute instances describe {{ instance_name }} \ --zone={{ gcp_zone }} \ --project={{ gcp_project }} @@ -111,6 +120,10 @@ ansible.builtin.shell: executable: /bin/bash cmd: | + # The next line updates PATH for the Google Cloud SDK. + if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi + # The next line enables shell command completion for gcloud. + if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi gcloud compute instances create-with-container {{ instance_name }} \ --project={{ gcp_project }} \ --zone={{ gcp_zone }} \ @@ -128,6 +141,10 @@ - name: Fetch instance public IP address ansible.builtin.shell: cmd: | + # The next line updates PATH for the Google Cloud SDK. + if [ -f '/home/builder/google-cloud-sdk/path.bash.inc' ]; then . '/home/builder/google-cloud-sdk/path.bash.inc'; fi + # The next line enables shell command completion for gcloud. + if [ -f '/home/builder/google-cloud-sdk/completion.bash.inc' ]; then . '/home/builder/google-cloud-sdk/completion.bash.inc'; fi gcloud compute instances describe {{ instance_name }} \ --zone={{ gcp_zone }} \ --project={{ gcp_project }} \