aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-08-09 13:02:02 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-08-09 13:02:02 +0300
commit9ddd240606b72e75ae44aa2dbd8a3bbbb4030784 (patch)
tree8d6f19d89babaa838d34a7cd65b8aa5eb0158dff
parentinventory: split into groups (diff)
downloadmaintenance-9ddd240606b72e75ae44aa2dbd8a3bbbb4030784.tar.gz
maintenance-9ddd240606b72e75ae44aa2dbd8a3bbbb4030784.zip
workflows/run: add hosts filtering
-rw-r--r--.github/workflows/run.yml7
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