ansible 部署 nginx安装出的问题,改一天了,愣是不知道报的啥错
[root@ansible roles]# vi ./nginx/tasks/main.yaml
---
- name: intsall epel.repo packge
yum: name=epel.repo state=latest
- name: install nginx packge
yum: name=nginx state=latest
- name: copy index.html
copy: src=index.html dest=/usr/share/nginx/html/index.html
- name: copy nginx.conf template
template: src=nginx.conf.j2 dest=/etc/nginx/nginx.conf
ontify: restart nginx
- name: make sure nginx service running
service: name=nginx state=started enable=yes
我看我的任务编写没什么错,又查了一遍整个剧本还是没看出来错
安装成功nginx并且开启
多半是格式或者是选项的问题