{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1860","repository_url":"https://api.github.com/repos/geerlingguy/drupal-vm","labels_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1860/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1860/comments","events_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1860/events","html_url":"https://github.com/geerlingguy/drupal-vm/issues/1860","id":378859416,"node_id":"MDU6SXNzdWUzNzg4NTk0MTY=","number":1860,"title":"mod_php not working","user":{"login":"denics","id":2407163,"node_id":"MDQ6VXNlcjI0MDcxNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/2407163?v=4","gravatar_id":"","url":"https://api.github.com/users/denics","html_url":"https://github.com/denics","followers_url":"https://api.github.com/users/denics/followers","following_url":"https://api.github.com/users/denics/following{/other_user}","gists_url":"https://api.github.com/users/denics/gists{/gist_id}","starred_url":"https://api.github.com/users/denics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denics/subscriptions","organizations_url":"https://api.github.com/users/denics/orgs","repos_url":"https://api.github.com/users/denics/repos","events_url":"https://api.github.com/users/denics/events{/privacy}","received_events_url":"https://api.github.com/users/denics/received_events","type":"User","site_admin":false},"labels":[{"id":77016988,"node_id":"MDU6TGFiZWw3NzAxNjk4OA==","url":"https://api.github.com/repos/geerlingguy/drupal-vm/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-08T18:23:47Z","updated_at":"2018-11-09T16:56:50Z","closed_at":null,"author_association":"NONE","body":"<!--- Drupal VM is used by developers in a wide variety of circumstances. Please use this template when reporting issues or suggesting features so we can help you more efficiently. **Delete this section** and fill in the rest of the template below, deleting the commented sections -->\r\n\r\n### Issue Type\r\n\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report / Support Request\r\n\r\n### Your Environment\r\n\r\n<!--- Paste the output from the following command: `vagrant --version && echo \"VirtualBox `vboxmanage --version`\" && ansible --version` (paste it in the space between the three graves) -->\r\n```\r\nVagrant 2.2.0\r\nVirtualBox 5.2.20r125813\r\nansible 2.7.1\r\n  config file = None\r\n  configured module search path = ['/Users/denix/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/local/Cellar/ansible/2.7.1/libexec/lib/python3.7/site-packages/ansible\r\n  executable location = /usr/local/bin/ansible\r\n  python version = 3.7.0 (default, Jul 30 2018, 10:36:50) [Clang 9.1.0 (clang-902.0.39.2)]\r\n```\r\n\r\n### Your OS\r\n\r\n<!--- Pick one below and delete the rest: -->\r\n - **macOS** 10.14\r\n### Full console output\r\n\r\n<!--- If this is a Bug Report / Support Request, please copy the ENTIRE contents of your console (including the command that was run), paste it into a new Gist on https://gist.github.com, then paste the link to the gist here. -->\r\n\r\n### Summary\r\n\r\nApache role cannot create link with mod_php7.0.load because mod_php has not been installed yet. solution is to move the ```tasks/extras.yml``` into pre-tasks sections.\r\n"},"comment":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/comments/437423334","html_url":"https://github.com/geerlingguy/drupal-vm/issues/1860#issuecomment-437423334","issue_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/1860","id":437423334,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzQyMzMzNA==","user":{"login":"denics","id":2407163,"node_id":"MDQ6VXNlcjI0MDcxNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/2407163?v=4","gravatar_id":"","url":"https://api.github.com/users/denics","html_url":"https://github.com/denics","followers_url":"https://api.github.com/users/denics/followers","following_url":"https://api.github.com/users/denics/following{/other_user}","gists_url":"https://api.github.com/users/denics/gists{/gist_id}","starred_url":"https://api.github.com/users/denics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denics/subscriptions","organizations_url":"https://api.github.com/users/denics/orgs","repos_url":"https://api.github.com/users/denics/repos","events_url":"https://api.github.com/users/denics/events{/privacy}","received_events_url":"https://api.github.com/users/denics/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T16:56:50Z","updated_at":"2018-11-09T16:56:50Z","author_association":"NONE","body":"Yep, I am using the guide. The issue is that when activating the option to use mod_php (yes, I am using 7.0, but the same happens with 7.1) the extra packages are installed after the tasks. This is the message I get:\r\n\r\n```\r\nTASK [geerlingguy.apache : Enable Apache mods.] ********************************\r\nchanged: [drupalvm] => (item=expires.load)\r\nchanged: [drupalvm] => (item=headers.load)\r\nchanged: [drupalvm] => (item=ssl.load)\r\nchanged: [drupalvm] => (item=rewrite.load)\r\nchanged: [drupalvm] => (item=proxy.load)\r\nfailed: [drupalvm] (item=php7.0.load) => {\"changed\": false, \"item\": \"php7.0.load\", \"msg\": \"src file does not exist, use \\\"force=yes\\\" if you really want to create the link: /etc/apache2/mods-available/php7.0.load\", \"path\": \"/etc/apache2/mods-enabled/php7.0.load\", \"src\": \"/etc/apache2/mods-available/php7.0.load\", \"state\": \"absent\"}\r\n```\r\n\r\nWhen moving the extra installation to the *pre_tasks* (I think it makes sense) everything works fine. "}}
{"actor":{"display_login":"denics"}}