From 4972ff6b7fdbe0372c2205e5a1f5cb8c304455de Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sun, 4 Mar 2018 15:15:37 -0500 Subject: [PATCH] Update nodepool_git_dest location Stop using /opt folder to store the location of git checkout. We don't actually need to be root user to do that. Change-Id: Icdb2905cf66fd9ab414d009ad3d782bc802e037d Signed-off-by: Paul Belanger --- defaults/main.yaml | 2 +- tasks/install/git.yaml | 1 - tests/test.yaml | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 13e2874..7f967a2 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -55,7 +55,7 @@ nodepool_file_launcher_logging_conf_owner: "{{ nodepool_user_name }}" nodepool_file_launcher_logging_conf_src: etc/nodepool/launcher-logging.conf # tasks/install.yaml -nodepool_git_dest: /opt/ansible-role-nodepool/git/openstack-infra/nodepool +nodepool_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/nodepool" nodepool_git_uri: https://git.openstack.org/openstack-infra/nodepool nodepool_git_version: master # nodepool_git_refspec: diff --git a/tasks/install/git.yaml b/tasks/install/git.yaml index b3a33be..9b88acf 100644 --- a/tasks/install/git.yaml +++ b/tasks/install/git.yaml @@ -13,7 +13,6 @@ # under the License. --- - name: Git clone nodepool. - become: yes git: dest: "{{ nodepool_git_dest }}" refspec: "{{ nodepool_git_refspec|default(omit) }}" diff --git a/tests/test.yaml b/tests/test.yaml index a6a0b72..b238886 100644 --- a/tests/test.yaml +++ b/tests/test.yaml @@ -14,7 +14,6 @@ --- - hosts: all vars: - nodepool_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/nodepool" nodepool_git_update: false nodepool_pip_executable: pip3 rolename: ansible-role-nodepool