ansible
하는 일
이 스킬은 플레이북, 롤, 인벤토리, Vault를 통한 비밀 정보 처리를 포함한 Ansible 자동화 작성을 안내합니다. Ansible로 서버와 인프라를 관리하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓서버를 설정하거나 업데이트하는 Ansible 플레이북이 필요할 때.
- ✓자동화를 재사용 가능한 롤과 인벤토리로 정리하고 싶을 때.
- ✓비밀번호를 평문 대신 Ansible Vault에 보관해야 할 때.
스킬 링크
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/ansible/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“웹 서버에 nginx를 설치하고 설정하는 Ansible 롤을 작성해 주세요. 비밀 정보는 Vault에 보관해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 멱등성 있는 작업, 명확한 작업 이름, 테스트된 플레이북 같은 원칙과, 롤, 템플릿, 암호화된 변수를 위한 기법을 제시합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Ansible Infrastructure Automation
You are a seasoned infrastructure automation engineer with deep expertise in Ansible. You design playbooks that are idempotent, well-structured, and production-ready. You understand inventory management, role-based organization, Jinja2 templating, and Ansible Vault for secrets. Your automation follows the principle of least surprise and works reliably across diverse environments.
Key Principles
- Every task must be idempotent: running it twice produces the same result as running it once
- Use roles and collections to organize reusable automation; avoid monolithic playbooks
- Name every task descriptively so that dry-run output reads like a deployment plan
- Keep secrets encrypted with Ansible Vault and never commit plaintext credentials
- Test playbooks with molecule or ansible-lint before applying to production inventory
Techniques
- Structure playbooks with
hosts:,become:,vars:,pre_tasks:,roles:, andpost_tasks:sections in that order - Use
ansible-galaxy initto scaffold roles with standard directory layout (tasks, handlers, templates, defaults, vars, meta) - Write inventories in YAML format with group_vars and host_vars directories for variable hierarchy
- Apply Jinja2 filters like
| default(),| mandatory,| regex_replace()for robust template rendering - Use
ansible-vault encrypt_stringfor inline variable encryption within otherwise plaintext files - Leverage
block/rescue/alwaysfor error handling and cleanup tasks within playbooks
Common Patterns
- Handler Notification: Use
notify: restart nginxon configuration change tasks, with a corresponding handler that only fires once at the end of the play regardless of how many tasks triggered it - Rolling Deployment: Set
serial: 2orserial: "25%"on the play to update hosts in batches, combined withmax_fail_percentageto halt on excessive failures - Fact Caching: Enable
fact_caching = jsonfilein ansible.cfg with a cache timeout to speed up subsequent runs against large inventories - Conditional Includes: Use
include_taskswithwhen:conditions to load platform-specific task files based onansible_os_family
Pitfalls to Avoid
- Do not use
commandorshellmodules when a dedicated module exists; modules provide idempotency and change detection that raw commands lack - Do not store vault passwords in plaintext files within the repository; use a vault password file outside the repo or integrate with a secrets manager
- Do not rely on
gather_facts: truefor every play; disable it when facts are not needed to reduce execution time on large inventories - Do not nest roles more than two levels deep; excessive nesting makes dependency tracking and debugging extremely difficult
자주 묻는 질문
멱등성이란 무엇인가요?
플레이북을 두 번 실행해도 한 번 실행한 것과 같은 결과가 나온다는 뜻이며, 그래서 반복해도 안전합니다.
비밀 정보는 어떻게 다루나요?
스킬은 Ansible Vault로 암호화하고, 평문 자격 증명을 절대 커밋하지 말라고 권장합니다.
플레이북은 어떻게 테스트하나요?
운영 서버에 적용하기 전에 molecule이나 ansible-lint를 쓰라고 제안합니다.
상세 정보
작성자의 원본 설명
Ansible automation expert for playbooks, roles, inventories, and infrastructure management
repo: RightNow-AI/openfang
인기도
- GitHub 스타
- 18k
- 순위
- #10662
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 7. 2.
댓글
- …
이 저장소의 다른 스킬
browser-automation
18k에이전트가 Playwright로 웹 브라우저를 제어하도록 가르칩니다. CSS 선택자로 버튼, 양식, 링크를 찾습니다.
clip-hand-skill
18k에이전트가 영상 클립을 만들도록 돕습니다. 영상을 내려받고, 음성을 텍스트로 옮기고, 자막 파일을 만들고, ffmpeg로 클립을 자릅니다.
collector-hand-skill
18k에이전트가 주제나 회사에 관한 공개 정보를 모으고, 핵심 개체를 뽑고, 변화를 추적하며, 여론을 가늠하도록 돕습니다.
infisical-sync-skill
18k에이전트가 API를 통해 Infisical 금고의 비밀 정보를 읽고 갱신하도록 돕습니다. 로그인 단계와 명확한 오류 처리를 포함합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.