From 4318c578d3b3eef827c9e338507328378d79ed37 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 19 Aug 2018 19:53:02 +0100 Subject: [PATCH] tests: add playbook step to ensure key file perms. --- tests/ansible/integration/ssh/variables.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ansible/integration/ssh/variables.yml b/tests/ansible/integration/ssh/variables.yml index 110d3340..dc4fe434 100644 --- a/tests/ansible/integration/ssh/variables.yml +++ b/tests/ansible/integration/ssh/variables.yml @@ -101,6 +101,11 @@ when: is_mitogen + - name: ansible_ssh_private_key_file + shell: chmod 0600 ../data/docker/mitogen__has_sudo_pubkey.key + args: + chdir: ../.. + - name: ansible_ssh_private_key_file shell: > ANSIBLE_STRATEGY=mitogen_linear