---
- hosts: minio
tasks:
- name: 上传nginx
copy:
src: nginx-1.20.1-1.el7.ngx.x86_64.rpm
dest: /opt
- name: 安装nginx
yum:
name:
- /opt/nginx-1.20.1-1.el7.ngx.x86_64.rpm
#- nginx
state: present
ansible-playbook -i inventory/nginx test.yml



