ansible-jenkins
ansible-jenkins copied to clipboard
emmetog.jenkins : Ensure jenkins home dir is created]
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
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
Any progress?