From: Mark Wooding Date: Mon, 13 Jul 2015 09:44:19 +0000 (+0100) Subject: roles/common/tasks/main.yml: Explicitly create /root/.ssh/. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-ansible/commitdiff_plain/e595500b2ecae78c34678584cee388cf50d53787 roles/common/tasks/main.yml: Explicitly create /root/.ssh/. --- diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index e740eaa..d6258e7 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -67,6 +67,10 @@ - sshd_config.m4 - moduli +- name: "create root's .ssh/ directory" + tags: [ssh, ssh-root] + file: path=/root/.ssh/ state=directory mode=0750 + - name: install main keys for root SSH access tags: [ssh, ssh-root] template: src=ssh-root/authkeys.base dest=/root/.ssh/authkeys.base