浏览代码

Use 'command' module instead of 'shell'

Sylvain Baubeau 9 年之前
父节点
当前提交
4904ae9603
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/flannel_register/tasks/main.yml

+ 1 - 1
roles/flannel_register/tasks/main.yml

@@ -11,4 +11,4 @@
 
 - name: Insert flannel configuration into etcd
   sudo: true
-  shell: 'curl -L --cacert "{{ etcd_peer_ca_file }}" --cert "{{ etcd_peer_cert_file }}" --key "{{ etcd_peer_key_file }}" "{{ etcd_hosts[0] }}/v2/keys{{ flannel_etcd_key }}/config" -XPUT --data-urlencode value@/etc/flannel/config.json'
+  command: 'curl -L --cacert "{{ etcd_peer_ca_file }}" --cert "{{ etcd_peer_cert_file }}" --key "{{ etcd_peer_key_file }}" "{{ etcd_hosts[0] }}/v2/keys{{ flannel_etcd_key }}/config" -XPUT --data-urlencode value@/etc/flannel/config.json'