dockerhost/.forgejo/workflows/run.yaml
stelb 1146eb2acd
All checks were successful
/ checkout (push) Successful in 1m11s
.forgejo/workflows/run.yaml aktualisiert
2025-03-10 19:51:42 +01:00

40 lines
1.2 KiB
YAML

on: push
jobs:
checkout:
runs-on: docker
# container:
# image: cytopia/ansible
steps:
- name: checkóut
uses: actions/checkout@v4
# install ansbile
- name: Install Ansible
run: |
apt update -y
apt install python3-pip -y
python3 -m pip install ansible
python3 -m pip install ansible-lint
- name: Run playbook
uses: https://github.com/dawidd6/action-ansible-playbook@v3
with:
# Required, playbook filepath
playbook: deploy.yml
# Optional, directory where playbooks live
directory: ./
# Optional, ansible configuration file content (ansible.cfg)
configuration: |
[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: |
--inventory inventory
-u stelb
--become-user root
--become-method sudo
--verbose