模块 2. 创建 yum 存储库 yum_repository 3. 安装集合

ansible-galaxy collection install
  1. 安装软件包
ansible.builtin.dnf:
  1. 使用 RHEL 系统角色
cat

mycollections/ansible_collections/redhat/rhel_system_roles/docs/timesync/multiple-ntp-servers.yml 6. 使用 Ansible Galaxy 安装角色

-src: name:

  • src: name:
  1. 创建和使用角色 service firewalld template
  2. 创建和使用逻辑卷 Stat Fail Block Lvol Rescue Debug Lvol Always Filesystem
  3. 修改文件内容 .copy
  4. 创建 Web 内容目录 group file
  5. 生成硬件报告 get_url .lineinfile
  6. 创建用户帐户 Group User 配置 cron 作业 Cron

图片