Skip to content

Commit

Permalink
chore: repo-ansible run
Browse files Browse the repository at this point in the history
  • Loading branch information
mhitza committed Dec 27, 2023
1 parent 6abb1d2 commit b38344b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ used (an arbitrarily large limit of 1000 results was chosen so it works for all
```shell
gh search repos --owner=linkorb --limit=1000 \
--archived=false \
--json name,defaultBranch \
--jq '.[] | .name + " default_branch=" + .defaultBranch + " ansible_host=localhost"' \
--json name \
--jq '.[] | .name + " ansible_host=localhost"' \
| tee generated-inventory.ini
```

> **Note** `generated-inventory.ini` is part of `.gitignore` to avoid accidental file commits.
> An entry within the inventory is of the form `REPOSITORY_NAME default_branch=DEFAULT_BRANCH ansible_host=localhost`
> An entry within the inventory is of the form `REPOSITORY_NAME ansible_host=localhost`
#### Run a playbook in bulk

Expand Down

0 comments on commit b38344b

Please sign in to comment.