From dcdf56e9fe8220327bcb48b6d52614224f8f561b Mon Sep 17 00:00:00 2001 From: neetin Date: Tue, 8 Jun 2021 03:00:47 +0530 Subject: [PATCH] Latest fixes as per the mark's review comments --- fn_ansible_tower/README.md | 11 ++++++----- fn_ansible_tower/apikey_permissions.txt | 8 ++++---- fn_ansible_tower/entrypoint.sh | 2 ++ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/fn_ansible_tower/README.md b/fn_ansible_tower/README.md index 79de9ae72..7c0d25a32 100644 --- a/fn_ansible_tower/README.md +++ b/fn_ansible_tower/README.md @@ -29,11 +29,12 @@ Specify all changes in this release. Do not remove the release notes of a previous release --> -### v1.0.1 -* App Host Support - -### v1.0.0 -* Initial Release +| Release | Date | Notes | +| ------- | ---- | ----- | +| v1.0.3 | 8/6/2022 | Bug fix to handle results data. | +| v1.0.2 | 2/2021 | Bug fix for paged results from templates, jobs, etc. | +| v1.0.1 | 12/2020 | App Host support | +| v1.0.0 | 2/2020 | Initial release | --- diff --git a/fn_ansible_tower/apikey_permissions.txt b/fn_ansible_tower/apikey_permissions.txt index a394a77a4..7299a4f27 100644 --- a/fn_ansible_tower/apikey_permissions.txt +++ b/fn_ansible_tower/apikey_permissions.txt @@ -10,7 +10,7 @@ read_function # ## incident permissions #create_incident -read_all_incidents +#read_all_incidents #delete_all_incidents #edit_all_incidents_members #edit_all_incidents_owner @@ -20,7 +20,7 @@ read_all_incidents edit_all_incidents_fields # ## notes permissions -edit_all_incident_notes +#edit_all_incident_notes # ## tasks permissions #edit_incident_public_task_fields @@ -41,7 +41,7 @@ edit_all_incident_notes #read_users # ## workflow permissions - needed when using workflow_id -read_workflow +#read_workflow # ## wiki permissions #create_wiki @@ -56,7 +56,7 @@ read_workflow #edit_layouts #delete_layouts #create_function -read_function +#read_function #edit_function #delete_function #create_script diff --git a/fn_ansible_tower/entrypoint.sh b/fn_ansible_tower/entrypoint.sh index b3974d4a7..9b01f5a8e 100644 --- a/fn_ansible_tower/entrypoint.sh +++ b/fn_ansible_tower/entrypoint.sh @@ -7,10 +7,12 @@ APP_CONFIG_SHA=`sha256sum /etc/rescircuits/app.config` resilient-circuits run & CIRCUITS_PID=`echo $!` while true do + echo -n "`date +'%F %T,%N INFO '`" if ! echo $APP_CONFIG_SHA | sha256sum --check then kill -9 $CIRCUITS_PID break fi + if [ "$CIRCUITS_PID" != "`ps -o pid= -p $CIRCUITS_PID|xargs`" ]; then break; fi sleep 60 done \ No newline at end of file