init runner v2
This commit is contained in:
18
example-caller-workflow.yaml
Normal file
18
example-caller-workflow.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
name: 🚀 Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
uses: ansible/ansible-runner/.gitea/workflows/ansible-runner.yaml@main
|
||||
with:
|
||||
role_repo: ansible/role-samba # role repository to check out
|
||||
playbook_path: playbooks/deploy.yml # path inside the role repo
|
||||
inventory: inventory/raspberries.yaml # optional — this is the default
|
||||
ansible_extra_args: '--tags install' # optional
|
||||
secrets:
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
Reference in New Issue
Block a user