3.2. 플레이북 예: 리포지토리 동기화 및 콘텐츠 뷰 게시


이 예제 플레이북은 다음 모듈을 사용합니다.

  • redhat.satellite.repository_sync
  • redhat.satellite.content_view_version

플레이북은 리포지토리를 동기화하고 이를 포함하는 콘텐츠 뷰를 게시합니다.

이 플레이북을 실행하기 전에 필요한 리포지토리를 활성화하고 콘텐츠 뷰를 생성했는지 확인합니다. 이를 확인하는 예제 플레이북은 3.1절. “플레이북 예: 리포지토리 활성화 및 콘텐츠 뷰 생성” 을 참조하십시오.

- name: Ensure Red Hat Enterprise Linux 9 repositories are synced and content view is published
  hosts: localhost
  vars_files:
    - My_Vault.yml
  module_defaults:
    group/redhat.satellite.satellite:
      username: "{{ My_Username }}"
      password: "{{ My_Password }}"
      server_url: "{{ My_Server_URL }}"
  tasks:
    - name: Sync Red Hat Enterprise Linux repositories
      redhat.satellite.repository_sync:
        product: "Red Hat Enterprise Linux for x86_64"
        organization: "Default Organization"
    - name: Publish Red Hat Enterprise Linux 9 content view
      redhat.satellite.content_view_version:
        content_view: "Red Hat Enterprise Linux 9 content view"
        organization: "Default Organization"
Copy to Clipboard Toggle word wrap

자세한 내용은 다음 명령을 사용하여 Ansible 모듈 설명서를 참조하십시오.

  • ansible-doc redhat.satellite.repository_sync
  • ansible-doc redhat.satellite.content_view_version
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat