ansible-jenkins icon indicating copy to clipboard operation
ansible-jenkins copied to clipboard

emmetog.jenkins : Ensure jenkins home dir is created]

Open samzm91 opened this issue 6 years ago • 2 comments

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

samzm91 avatar Nov 01 '18 22:11 samzm91

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

gcastell avatar Dec 04 '18 16:12 gcastell

Any progress?

hasufell avatar Aug 05 '19 10:08 hasufell