模块 2. 创建 yum 存储库 yum_repository 3. 安装集合
ansible-galaxy collection install
- 安装软件包
ansible.builtin.dnf:
- 使用 RHEL 系统角色
cat
mycollections/ansible_collections/redhat/rhel_system_roles/docs/timesync/multiple-ntp-servers.yml 6. 使用 Ansible Galaxy 安装角色
-src: name:
- src: name:
- 创建和使用角色 service firewalld template
- 创建和使用逻辑卷 Stat Fail Block Lvol Rescue Debug Lvol Always Filesystem
- 修改文件内容 .copy
- 创建 Web 内容目录 group file
- 生成硬件报告 get_url .lineinfile
- 创建用户帐户 Group User 配置 cron 作业 Cron