RedHat运维-Ansible自动化运维基础22-rhel-system-roles

1. system_roles的官方文档的位置是___________________________________;
2. system_roles的官方文档的位置是___________________________________;
3. system_roles的官方文档的位置是___________________________________;
4. 安装rhel-system-roles的命令是_____________________________;
5. 安装rhel-system-roles的命令是_____________________________;
6. 安装rhel-system-roles的命令是_____________________________;
7. 对于ansible.cfg这个配置文件,建议的改动是______________________;
8. 对于ansible.cfg这个配置文件,建议的改动是______________________;
9. 对于ansible.cfg这个配置文件,建议的改动是______________________;
10. rhel-system-roles:使用timesync这个系统role,使用的授时服务器是rhgls.domain10.example.com,并启用iburst参数;
11. rhel-system-roles:使用selinux这个系统role,设置所有受控主机的selinux状态为enforcing;

1. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/automating_system_administration_by_using_rhel_system_roles/index
2. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/automating_system_administration_by_using_rhel_system_roles/index
3. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/automating_system_administration_by_using_rhel_system_roles/index
4. sudo dnf install rhel-system-roles
5. sudo dnf install rhel-system-roles
6. sudo dnf install rhel-system-roles
7. roles_path=roles:/usr/share/ansible/roles
8. roles_path=roles:/usr/share/ansible/roles
9. roles_path=roles:/usr/share/ansible/roles
10. /* A20240607.yaml */
---
- name: Play1
  hosts: all
  vars:
    timesync_ntp_servers:
      - hostname: rhgls.domain10.example.com
        iburst: yes
  roles:
    - rhel-system-roles.timesync
...
11. /* B20240607.yaml */
---
- name: Play1
  hosts: all
  vars:
    selinux_policy: targeted
    selinux_state: enforcing
  roles:
    - rhel-system-roles.selinux
...

  • 4
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值