diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-09 13:02:02 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-09 13:02:02 +0300 |
commit | 9ddd240606b72e75ae44aa2dbd8a3bbbb4030784 (patch) | |
tree | 8d6f19d89babaa838d34a7cd65b8aa5eb0158dff | |
parent | inventory: split into groups (diff) | |
download | maintenance-9ddd240606b72e75ae44aa2dbd8a3bbbb4030784.tar.gz maintenance-9ddd240606b72e75ae44aa2dbd8a3bbbb4030784.zip |
workflows/run: add hosts filtering
-rw-r--r-- | .github/workflows/run.yml | 7 |
1 files changed, 6 insertions, 1 deletions
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 |