![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ansible
小小的木头人
这个作者很懒,什么都没留下…
展开
-
ansible-playbook 拷贝多文件
yml 脚本内容:--- - hosts: test remote_user: root gather_facts: false become: yes tasks: - name: "copy from target cpu" copy: src: "{{item.src}}" dest: "{{item.dest}}" owner: root group: root mode: 7原创 2021-10-25 16:10:02 · 2588 阅读 · 0 评论 -
ansible 安装nginx
---- hosts: web vars: - nginx_version: 1.16.1 - nginx_user: nginx tasks: - name: add nginx run user user: name={{ nginx_user }} - name: nginx dependence yum: name={{ ...原创 2019-11-08 18:10:38 · 386 阅读 · 0 评论