Next:
Ansible Galaxy
Up:
RHEL Roles
Previous:
使用 RHEL 角色
Contents
DYWANG_HOME
實機練習
安裝 rhel-system-roles 套件。
確認目前工作目錄下的 ansible.cfg,
roles_path
是否包含 rhel 系統角色目錄?
撰寫 timesync.yml,在所有受管主機使用 timesync 角色啟用校時服務,時間伺服器 192.168.122.1,啟用 iburst 參數。
撰寫 postfix.yml,對 prod 主機使用 rhel 系統角色 postfix,設定
relay_host
為 deyu.wang。