diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-08-12 00:11:07 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-08-15 11:20:04 +0800 |
commit | 3c4de6f3f4e74e032d3724ac6683e7326266787e (patch) | |
tree | e200078fa3e40cf80ad75cdd219df324aa8b764d /utils/test/result_collection_api/update/test.yml | |
parent | 341749a5b6dadf4839ae289dd2441dba5a81336b (diff) |
update testapi only with one command
when using ansible to do the update, we need to
config ansible's hosts file/add ssh_key to
ssh_agent/check the connectivity of ansible and playbook...etc,
here playbook-update.sh will do all the job automatically
JIRA: FUNCTEST-411
Change-Id: Ie635eb9eccd1f4e39a94a352f649e56268744091
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/update/test.yml')
-rw-r--r-- | utils/test/result_collection_api/update/test.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/update/test.yml b/utils/test/result_collection_api/update/test.yml new file mode 100644 index 000000000..a8868720d --- /dev/null +++ b/utils/test/result_collection_api/update/test.yml @@ -0,0 +1,12 @@ +--- +- hosts: "{{ host }}" + remote_user: "{{ user }}" + become: yes + become_method: sudo + vars: + user: "root" + tasks: + - name: test connectivity + command: "echo hello {{ host }}" + register: result + - debug: msg="{{ result }}" |