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