From f4b52a3c3c600e38a5cb71ba114446bd1b17741c Mon Sep 17 00:00:00 2001 From: Brian Carrigan Date: Fri, 5 Aug 2016 22:46:33 -0400 Subject: [PATCH] More explicit still. --- tasks/asdf.yml | 4 ++-- tasks/deployer-user.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/asdf.yml b/tasks/asdf.yml index f1bfacd..37ea1de 100644 --- a/tasks/asdf.yml +++ b/tasks/asdf.yml @@ -1,11 +1,11 @@ --- - name: "install asdf" - git: repo="https://github.com/HashNuke/asdf.git" dest="{{ deployer }}/.asdf" update=yes + git: repo="https://github.com/HashNuke/asdf.git" dest="/home/{{ deployer }}/.asdf" update=yes remote_user: "{{deployer}}" - name: "source asdf in bashrc" - lineinfile: dest="/home/{{ deployer }}/.bash_profile" create=yes line="source ~/.asdf/asdf.sh" + lineinfile: dest="/home/{{ deployer }}/.bash_profile" create=yes line="source /home/{{ deployer }}/.asdf/asdf.sh" remote_user: "{{deployer}}" diff --git a/tasks/deployer-user.yml b/tasks/deployer-user.yml index 8fc4a31..b31771d 100644 --- a/tasks/deployer-user.yml +++ b/tasks/deployer-user.yml @@ -4,7 +4,7 @@ - name: "read authorized keys from root user" - command: "cat ~/.ssh/authorized_keys" + command: "cat /home/{{ deployer }}/.ssh/authorized_keys" register: "root_authorized_keys" @@ -21,5 +21,5 @@ - name: "ensure projects directory" - file: path="~/projects" state=directory + file: path="/home/{{deplyer}}/projects" state=directory remote_user: "{{ deployer }}"