Use "state=touch" instead of running touch

In the bifrost-openstack-ci-prep role we ran touch,
but we can actually do this using ansible's file
module. Fix it to get rid of a warning.

Change-Id: I8e320d0c1a3f8d384c9aab405ec54be5543823db
Closes-Bug: #1523729
This commit is contained in:
stephane 2016-01-06 17:09:03 -08:00
parent 7ff69efafa
commit 3853df0e1b

View File

@ -33,7 +33,10 @@
- name: > - name: >
"Create an empty SSH known_hosts file for Jenkins user "Create an empty SSH known_hosts file for Jenkins user
if operating in OpenStack CI" if operating in OpenStack CI"
shell: touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts file:
path: "~/.ssh/known_hosts"
state: touch
mode: 0600
when: > when: >
ci_testing_zuul is defined and ci_testing_zuul is defined and
test_ssh_public_key_path.stat.exists | bool == false test_ssh_public_key_path.stat.exists | bool == false