我想拉動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