24.4. ファイルシステム内の Ansible ロールの場所
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マークダウンファイルに、例、基本的な概要、ライセンス、およびロールに関するドキュメントが保存されています。ls -1 /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/roles ipaclient ipareplica ipaserver
[root@server]# ls -1 /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/roles ipaclient ipareplica ipaserverCopy to Clipboard Copied! Toggle word wrap Toggle overflow /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/ディレクトリーのREADME.mdマークダウンファイルには、個々のロールとトポロジーに関するドキュメントが保存されています。また、playbooks/サブディレクトリーも保存されています。Copy to Clipboard Copied! Toggle word wrap Toggle overflow /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/playbooks/ディレクトリーには、サンプルの Playbook が保存されています。Copy to Clipboard Copied! Toggle word wrap Toggle overflow