啥也没写
发布时间:2016-02-19 16:33:09
默认就有,添加sudo比较方便,,详细查看ansible-doc lineinfilevi 1.yml---- hosts: xq vars: user: xq_zhengmingyi password: "xxxx" remote_user: root tasks: - name: Add user {{ user }} user: name={{user}} password={{ password.........【阅读全文】
发布时间:2016-02-19 16:31:22
默认安装没有,要安装一个标准库puppet module install puppetlabs-stdlibvi 1.ppfile_line { '100': path => '/tmp/uid.txt', line => '100100',}file_line { '101': path => '/tmp/uid.txt', line => '101100',}file_line { '102': path => '/tmp/uid.txt', line =.........【阅读全文】