Merge "Use "state=touch" instead of running touch"

This commit is contained in:
Jenkins 2016-01-14 20:25:24 +00:00 committed by Gerrit Code Review
commit 88ddc3c9d6

View File

@ -33,7 +33,10 @@
- name: >
"Create an empty SSH known_hosts file for Jenkins user
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: >
ci_testing_zuul is defined and
test_ssh_public_key_path.stat.exists | bool == false