标签:本地 line shell oca sts add 委派 pre name
- name: add host record to center server local_action: shell ‘echo "192.168.1.100 test.xyz.com " >> /etc/hosts‘
当然您也可以使用 connection:local 方法,如下:
- name: add host record to center server shell: ‘echo "192.168.1.100 test.xyz.com " >> /etc/hosts‘ connection: local
标签:本地 line shell oca sts add 委派 pre name
原文地址:http://www.cnblogs.com/andriy-h/p/6346882.html