正文

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)
評論
目前還沒有任何評論
登錄後才可評論.