diff --git a/roles/httpd_mod_perl/tasks/main.yml b/roles/httpd_mod_perl/tasks/main.yml index 9069f24..fe55c0a 100644 --- a/roles/httpd_mod_perl/tasks/main.yml +++ b/roles/httpd_mod_perl/tasks/main.yml @@ -3,5 +3,9 @@ - name: Install mod_perl yum: name=mod_perl + # Can be installed before httpd, so create the dir +- name: Ensure /etc/httpd/ansible_conf.modules.d exists + file: path=/etc/httpd/ansible_conf.modules.d state=directory + - name: Load mod_perl module copy: src=03-perl.conf dest=/etc/httpd/ansible_conf.modules.d/03-perl.conf