RepositoryJavaScriptPLBa Lan
dawidd6

dawidd6/action-ansible-playbook

:gear: GitHub Action for running Ansible playbooks

364sao
72fork
10issue
3lượt xem

🚀 Chạy Ansible playbook ngay từ GitHub Actions

Một GitHub Action giúp bạn thực thi bất kỳ playbook Ansible nào lên các máy chủ đích chỉ bằng cấu hình YAML đơn giản.

Dự án action-ansible-playbook của dawidd6 là một GitHub Action cho phép bạn chạy trực tiếp các tệp playbook Ansible (.yml) trên môi trường CI/CD từ GitHub Actions. Action này hoạt động trên bất kỳ hệ điệp hệ điều hành nào, miễn là lệnh ansible-playbook có sẵn trong PATH.

✨ Điểm nổi bật

  • playbook: Đường dẫn đến tệp playbook cần chạy (bắt buộc).
  • directory: Thư mục chứa playbook (tùy chọn, mặc định là ./).
  • configuration: Nội dung cấu hình ansible.cfg được truyền trực tiếp dưới dạng chuỗi (tùy chọn).
  • key: Khóa SSH riêng để kết nối tới máy chủ mục tiêu (tùy chọn).
  • inventory: Nội dung tệp inventory dưới dạng văn bản (tùy chọn).
  • known_hosts: Nội dung tệp known_hosts để xác minh SSH (tùy chọn).
  • vault_password: Mật khẩu giải mã Vault nếu playbook sử dụng mã hóa (tùy chọn).
  • requirements: Đường dẫn đến tệp yêu cầu Galaxy (tùy chọn).
  • options: Các cờ phụ thêm truyền vào lệnh ansible-playbook (tùy chọn).

💡 Vì sao đáng chú ý

Thay vì phải cài đặt và cấu hình Ansible phức tạp trên runner CI, bạn chỉ cần khai báo Action trong workflow và cung cấp playbook kèm thông tin kết nối. Mọi cấu hình như inventory, khóa SSH hay mật khẩu Vault đều được truyền trực tiếp qua tham số, giúp giữ an toàn thông qua GitHub Secrets.

Phù hợp cho các pipeline triển khai tự động, cập nhật cấu hình server hoặc chạy tác vụ quản lý hạ tầng trong môi trường DevOps.


#GitHubActions #Ansible #DevOps #CI/CD #Automation #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryShell
StreisandEffect/streisand

Streisand sets up a new server running your choice of WireGuard, OpenConnect, OpenSSH, OpenVPN, Shadowsocks, sslh, Stunnel, or a Tor bridge. It also generates custom instructions for all of these services. At the end of the run you are given an HTML file with instructions that can be shared with friends, family members, and fellow activists.

23.4k
May 4, 2021
RepositoryRuby
community/community

Public feedback discussions for: GitHub Mobile, GitHub Discussions, GitHub Codespaces, GitHub Sponsors, GitHub Issues and more!

9.0k
Nov 30, 2026
RepositoryShell
geerlingguy/mac-dev-playbook

Mac setup and configuration via Ansible.

7.1k
Aug 4, 2026
RepositoryShell
appleboy/ssh-action

GitHub Actions for executing remote ssh commands.

6.3k
Aug 16, 2026
RepositoryJinja
dev-sec/ansible-collection-hardening

This Ansible collection provides battle tested hardening for Linux, SSH, nginx, MySQL

5.6k
Nov 30, 2026
RepositoryShell
turkenh/ansible-interactive-tutorial

Interactive Ansible tutorials with dead simple setup via Docker

1.5k
Jan 1, 2022
RepositoryPython
debops/debops

DebOps - Your Debian-based data center in a box

1.4k
Nov 25, 2026
RepositoryJinja
Graylog2/graylog-ansible-role

Ansible role which installs and configures Graylog

224
Nov 20, 2026
RepositoryHCL
cloudposse-archives/terraform-null-ansible

Terraform Module to run ansible playbooks

166
Feb 25, 2025