Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emmetog.jenkins : Ensure jenkins home dir is created] #33

Open
samzm91 opened this issue Nov 1, 2018 · 2 comments
Open

emmetog.jenkins : Ensure jenkins home dir is created] #33

samzm91 opened this issue Nov 1, 2018 · 2 comments

Comments

@samzm91
Copy link

samzm91 commented Nov 1, 2018

PLAY [127.0.0.1] *****************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [emmetog.jenkins : include] *************************************************************************************************************************************************************************
included: /root/jenkins/ansible-jenkins/roles/emmetog.jenkins/tasks/docker/install.yml for 127.0.0.1

TASK [emmetog.jenkins : Ensure jenkins home dir is created] **********************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "msg": "chown failed: failed to look up user ubuntu", "owner": "root", "path": "/data/jenkins", "secontext": "unconfined_u:object_r:default_t:s0", "size": 4096, "state": "directory", "uid": 0}
to retry, use: --limit @/root/jenkins/ansible-jenkins/deploy-jenkins.retry

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

@gcastell
Copy link

gcastell commented Dec 4, 2018

For me this fixed this issue, I added the following text to the top of this file:
emmetog/tasks/yum/install.yml:

  • name: Ensure jenkins home dir is created
    file:
    path: "{{ jenkins_home }}"
    mode: 0777
    owner: "{{ jenkins_config_owner }}"
    group: "{{ jenkins_config_group }}"
    state: directory

@hasufell
Copy link
Contributor

hasufell commented Aug 5, 2019

Any progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants