Failed to mkdir while creating a handler directory - Ansible

0 votes

I am trying to install phpDocumentor using pear and when I run

pear install phpdoc/phpdocumentor

I get the following error

ERROR: failed to mkdir /var/www/phpDocumentor/ansible/roles/phpdocumentor.environment/handlers
Mar 14 in Ansible by Ali
65 views

1 answer to this question.

0 votes
Hey @Ali, try running it as a root user and let me know if it works.
answered Mar 14 by Bob
Hey @Bob, thanks for a quick response. Running the command as root also did not help, I get the same error.

I had got a similar issue. I uninstalled pear and installed it again and it started working. I still do not know the reason.

Related Questions In Ansible

0 votes
1 answer
0 votes
3 answers
0 votes
1 answer

Running ansible command on a single server when it is deployed to multiple servers

You can try the run_once attribute: Example from ...READ MORE

answered Jun 13, 2018 in Ansible by DareDev
• 6,810 points
190 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
175 views
0 votes
1 answer
0 votes
1 answer

Ansible task to know if a path exists and if its a directory

Hi @Nisha, use the stat module provided ...READ MORE

answered Apr 2 in Ansible by Alok
1,345 views
0 votes
1 answer