Skip to content

TASK [Install dehydrated] failes due to already existing folder #8

Closed
@eiktyrner

Description

@eiktyrner

It seems like cloning dehydrated failes due to an already existing folder that was created in an earlier task.

TASK [Prepare Let´s Encrypt certificates for Gitlab, if we setup an internal Server like Vagrant (you have to provide providername, providerusername & providertoken as extra-vars!)] ***
included: /home/jacob/VMs/gitlab-ci/gitlab-ci-stack/letsencrypt.yml for 127.0.0.1

TASK [Create /srv/dehydrated/certs/ if not already there (so we can check, if there was already a dehydrated run)] *************
changed: [127.0.0.1]

TASK [Check, if there is a directory with the domain name (like gitlab.jonashackt.io) in dehydrated certs folder] **************
ok: [127.0.0.1]

TASK [set_fact] ****************************************************************************************************************
ok: [127.0.0.1]

TASK [No certs present in /srv/dehydrated/certs/] ******************************************************************************
ok: [127.0.0.1] => {
    "msg": "There are no certs present in /srv/dehydrated/certs/ (files in this dir: []), we need to obtain new ones"
}

TASK [Obtain new Let´s Encrypt certificates for our internally-only accessable VagrantBox] *************************************
included: /home/jacob/VMs/gitlab-ci/gitlab-ci-stack/obtain-letsencrypt-certs-dehydrated-lexicon.yml for 127.0.0.1

TASK [Update apt] **************************************************************************************************************
changed: [127.0.0.1]

TASK [Install openssl, curl, sed, grep, mktemp, git] ***************************************************************************
changed: [127.0.0.1]

TASK [Install dehydrated] ******************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/usr/bin/git clone --origin origin https://github.com/lukas2511/dehydrated.git /srv/dehydrated", "msg": "fatal: destination path '/srv/dehydrated' already exists and is not an empty directory.", "rc": 128, "stderr": "fatal: destination path '/srv/dehydrated' already exists and is not an empty directory.\n", "stderr_lines": ["fatal: destination path '/srv/dehydrated' already exists and is not an empty directory."], "stdout": "", "stdout_lines": []}
        to retry, use: --limit @/home/jacob/VMs/gitlab-ci/gitlab-ci-stack/prepare-gitlab.retry

PLAY RECAP *********************************************************************************************************************
127.0.0.1                  : ok=18   changed=11   unreachable=0    failed=1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions