From 9ddd240606b72e75ae44aa2dbd8a3bbbb4030784 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Aug 2021 13:02:02 +0300 Subject: workflows/run: add hosts filtering --- .github/workflows/run.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 8d42674..a4e6fe4 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -2,6 +2,11 @@ name: Run on: workflow_dispatch: + inputs: + hosts: + description: Inventory pattern + required: false + default: all jobs: run: @@ -27,4 +32,4 @@ jobs: ${{ secrets.SSH_KEY }} EOF - name: Run Ansible play - run: ansible-playbook --inventory inventory.ini --private-key .ansible-key maintenance.yml + run: ansible-playbook --inventory inventory.ini --limit '${{ github.event.inputs.hosts }}' --private-key .ansible-key maintenance.yml -- cgit v1.2.3