【发布时间】:2021-08-13 12:27:28
【问题描述】:
我有一个安装了 ansible 的 CENTOS 7 VM,我正在尝试在 RED HAT 8 上安装带有 ansible 的 HTTPD 服务。
文件内容:
“主机”
[ubuntuserver]
192.168.1.51
[redhat]
192.168.56.102
“playbook.yaml”
[root @ centos7 ansible] # cat playbook.yaml
---
- hosts: redhat
- remote_user: root
tasks:
- name: install apache
yum: name = httpd
[root @ centos7 ansible] #
我得到的错误:
【问题讨论】:
标签: linux ansible centos redhat