23.4. ファイルシステム内の Ansible ロールの場所
ファイルシステム内で、ansible-freeipa のロールと Playbook の例を探し、IdM デプロイメントおよび管理タスクのテンプレートとして使用します。
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マークダウンファイルには、個々のロールとトポロジーに関するドキュメントが保存されています。また、playbooks/サブディレクトリーも保存されています。[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/ディレクトリーには、サンプルの Playbook が保存されています。[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