正文

ansible tricky

(2019-05-01 10:22:35) 下一个

playbook eample : 

 

the beleow is right one,

we can not add "-" befor "shell" of line

---
- hosts: home1
  vars:
    http_port: 80
  tasks:
  - name: test of shell
    shell:  ls /etc > /etc/ansible/hello.log

 

[ 打印 ]
阅读 ()评论 (0)
评论
目前还没有任何评论
登录后才可评论.