From 3853df0e1ba520c1f5698c783eaa0cd8df57ad77 Mon Sep 17 00:00:00 2001 From: stephane Date: Wed, 6 Jan 2016 17:09:03 -0800 Subject: [PATCH] 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 --- playbooks/roles/bifrost-openstack-ci-prep/tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/bifrost-openstack-ci-prep/tasks/main.yml b/playbooks/roles/bifrost-openstack-ci-prep/tasks/main.yml index c2e7505c2..a7aca81d7 100644 --- a/playbooks/roles/bifrost-openstack-ci-prep/tasks/main.yml +++ b/playbooks/roles/bifrost-openstack-ci-prep/tasks/main.yml @@ -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