From ed3ed79c55bce5c0ebdeb2200c24bfc596d3ee43 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Mon, 9 Oct 2023 21:10:07 +0530 Subject: [PATCH] fix(ansible, github-actions): json workflows --- .github/workflows/ansible--reboot.yml | 3 +-- .github/workflows/ansible--update.yml | 3 +-- .github/workflows/ansible--uptime.yml | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ansible--reboot.yml b/.github/workflows/ansible--reboot.yml index 26db9ad6f..7bccf8609 100644 --- a/.github/workflows/ansible--reboot.yml +++ b/.github/workflows/ansible--reboot.yml @@ -72,6 +72,5 @@ jobs: run: | ansible-playbook play-any--reboot.yml \ --private-key=~/.ssh/id_for_ansible.pem \ - -e "variable_host=${{ inputs.hosts }}" \ - -e "variable_serial=${{ inputs.serial }}" \ + -e '{"variable_host": "${{ inputs.hosts }}", "variable_serial": ${{ inputs.serial }}, "variable_verbosity": "${{ inputs.serial}}}' \ ${{ inputs.verbosity }} diff --git a/.github/workflows/ansible--update.yml b/.github/workflows/ansible--update.yml index 2a02fcd16..3872db536 100644 --- a/.github/workflows/ansible--update.yml +++ b/.github/workflows/ansible--update.yml @@ -72,6 +72,5 @@ jobs: run: | ansible-playbook play-any--update.yml \ --private-key=~/.ssh/id_for_ansible.pem \ - -e "variable_host=${{ inputs.hosts }}" \ - -e "variable_serial=${{ inputs.serial }}" \ + -e '{"variable_host": "${{ inputs.hosts }}", "variable_serial": ${{ inputs.serial }}, "variable_verbosity": "${{ inputs.serial}}}' \ ${{ inputs.verbosity }} diff --git a/.github/workflows/ansible--uptime.yml b/.github/workflows/ansible--uptime.yml index c8455bb98..dace9d4a7 100644 --- a/.github/workflows/ansible--uptime.yml +++ b/.github/workflows/ansible--uptime.yml @@ -72,6 +72,5 @@ jobs: run: | ansible-playbook play-any--uptime.yml \ --private-key=~/.ssh/id_for_ansible.pem \ - -e "variable_host=${{ inputs.hosts }}" \ - -e "variable_serial=${{ inputs.serial }}" \ + -e '{"variable_host": "${{ inputs.hosts }}", "variable_serial": ${{ inputs.serial }}, "variable_verbosity": "${{ inputs.serial}}}' \ ${{ inputs.verbosity }}