2016-02-05 77 views
0

我想拉動github回購使用ansible,但它給我下面的錯誤。Ansible不拉動git回購

stderr: fatal: destination path '/var/www/server-ip' already exists and is not an empty directory.

msg: fatal: destination path '/var/www/server-ip' already exists and is not an empty directory.

這是我到目前爲止已經完成。

- name: Pull sources from GitHub git: repo: "{{ item.github_repo }}" version: "{{ item.github_branch }}" dest: "{{ WEB_ROOT }}/{{ item.server_name }}" key_file: "/home/username/.ssh/id_rsa" force: yes recursive: no when: item.get('state', 'link') == 'link' with_items: VIRTUAL_HOSTS

回答

2

錯誤消息已經已清楚:你是克隆的路徑不是空目錄。使用其他路徑或刪除該目錄。