.forgejo/workflows/run.yaml aktualisiert
This commit is contained in:
parent
08d58b5fd0
commit
f0bebfab1b
1 changed files with 26 additions and 18 deletions
|
|
@ -1,18 +1,26 @@
|
||||||
- name: Run playbook
|
on: pull_request
|
||||||
uses: dawidd6/action-ansible-playbook@v3
|
jobs:
|
||||||
with:
|
checkout:
|
||||||
# Required, playbook filepath
|
runs-on: docker
|
||||||
playbook: deploy.yml
|
steps:
|
||||||
# Optional, directory where playbooks live
|
- name: checkóut
|
||||||
directory: ./
|
uses: actions/checkout@v4
|
||||||
# Optional, ansible configuration file content (ansible.cfg)
|
|
||||||
configuration: |
|
- name: Run playbook
|
||||||
[defaults]
|
uses: dawidd6/action-ansible-playbook@v3
|
||||||
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
with:
|
||||||
stdout_callback = yaml
|
# Required, playbook filepath
|
||||||
nocows = false
|
playbook: deploy.yml
|
||||||
# Optional, SSH private key
|
# Optional, directory where playbooks live
|
||||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
directory: ./
|
||||||
# Optional, additional flags to pass to ansible-playbook
|
# Optional, ansible configuration file content (ansible.cfg)
|
||||||
options: |
|
configuration: |
|
||||||
--verbose
|
[defaults]
|
||||||
|
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
||||||
|
stdout_callback = yaml
|
||||||
|
nocows = false
|
||||||
|
# Optional, SSH private key
|
||||||
|
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||||
|
# Optional, additional flags to pass to ansible-playbook
|
||||||
|
options: |
|
||||||
|
--verbose
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue