23.4. 파일 시스템의 Ansible 역할 위치
IdM 배포 및 관리 작업의 템플릿으로 사용할 파일 시스템에서 ansible-freeipa 역할 및 플레이북 예제를 찾습니다.
RHEL 10에서 ansible-freeipa RPM 패키지는 freeipa.ansible_freeipa 컬렉션만 설치합니다.
새 컬렉션을 사용하려면 freeipa.ansible_freeipa 접두사를 역할 및 모듈 이름에 추가합니다. 정규화된 이름을 사용하여 Ansible 권장 사항을 따릅니다. 예를 들어 ipahbacrule 모듈을 참조하려면 freeipa.ansible_freeipa.ipahbacrule 을 사용합니다.
기본적으로 ansible-freeipa 역할은 /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/roles/ 디렉터리에 설치됩니다. ansible-freeipa 패키지의 구조는 다음과 같습니다.
/usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/roles/디렉터리는 Ansible 컨트롤러에ipaserver,ipareplica,ipaclient,ipasmartcard및ipabackup역할을 저장합니다. 각 역할 디렉터리는README.md마크다운 파일의 역할에 대한 기본 개요, 라이센스 및 설명서를 저장합니다.[root@server]# ls -1 /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/roles ipaclient ipareplica ipaserver/usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/디렉터리에는 개별 역할 및 토폴로지에 대한 문서가README.md마크다운 파일에 저장됩니다. 또한 playbook/ 하위 디렉터리를 저장합니다.[root@server]# ls -1 /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/ playbooks README-client.md README.md README-replica.md README-server.md README-topology.md/usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/playbooks/디렉터리에는 예제 플레이북이 저장됩니다.[root@server]# ls -1 /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/playbooks/ install-client.yml install-cluster.yml install-replica.yml install-server.yml uninstall-client.yml uninstall-cluster.yml uninstall-replica.yml uninstall-server.yml