# Need help with Ansible /jenkins

**URL:** <https://forum.ansible.com/t/need-help-with-ansible-jenkins/19634>\
**Category:** Ansible Project\
**Created:** [October 27, 2015, 4:21pm UTC](https://forum.ansible.com/t/need-help-with-ansible-jenkins/19634 "2015-10-27T16:21:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBANE\_FETIGUE](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Post date:** [October 27, 2015, 4:21pm UTC](https://forum.ansible.com/t/need-help-with-ansible-jenkins/19634/1 "2015-10-27T16:21:48Z")

</div>

Is anybody has an idea about that error message and how to fix it

```auto
PLAY [Deploy to status servers] *********************************************** 

GATHERING FACTS *************************************************************** 
ok: [172.16.21.129]

TASK: [nodejs_app | Put upstart script in place] ****************************** 
changed: [172.16.21.129]

TASK: [nodejs_app | Create config directory] ********************************** 
failed: [172.16.21.129] => {"failed": true, "item": "", "parsed": false}
invalid output was: Traceback (most recent call last):
  File "/var/lib/jenkins/.ansible/tmp/ansible-1445961024.27-103100734571092/file", line 1357, in <module>
    main()
  File "/var/lib/jenkins/.ansible/tmp/ansible-1445961024.27-103100734571092/file", line 263, in main
    os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/config'

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/var/lib/jenkins/deploy_system_status.retry

172.16.21.129 : ok=2 changed=1 unreachable=0 failed=1   

```

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [October 27, 2015, 4:28pm UTC](https://forum.ansible.com/t/need-help-with-ansible-jenkins/19634/2 "2015-10-27T16:28:44Z")

</div>

​Check the remote user has sufficient permissions.​

---

<div class="post-metadata">

**Author:** ![GBANE\_FETIGUE](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Post date:** [October 27, 2015, 4:52pm UTC](https://forum.ansible.com/t/need-help-with-ansible-jenkins/19634/3 "2015-10-27T16:52:52Z")

</div>

that’s wired root is the remote user it always has full permission right?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 27, 2015, 5:04pm UTC](https://forum.ansible.com/t/need-help-with-ansible-jenkins/19634/4 "2015-10-27T17:04:36Z")

</div>

almost always, selinux/apparmor or similar MAC can interfere with  
that, also NFS and/or other network filesystems.

---

<div class="post-metadata">

**Author:** ![Joshua\_J\_Kugler](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@Joshua\_J\_Kugler](https://forum.ansible.com/u/Joshua_J_Kugler)\
**Post date:** [October 27, 2015, 5:09pm UTC](https://forum.ansible.com/t/need-help-with-ansible-jenkins/19634/5 "2015-10-27T17:09:51Z")

</div>

> that's wired root is the remote user it always has full permission right?

Unless a directory is mounted over NFS and it's set to rootsquash. Or the  
directory has some other attribute set on it, like immutable.

j

---

<div class="post-metadata">

**Author:** ![GBANE\_FETIGUE](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Post date:** [October 27, 2015, 5:19pm UTC](https://forum.ansible.com/t/need-help-with-ansible-jenkins/19634/6 "2015-10-27T17:19:20Z")

</div>

I disabled all the firewall still having the same issues . I am running that ansible playbook through a Jenkins job. I don’t even have /var/config . i don’t why I am having permission denied.
