Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal playbook error #2

Closed
victorkane opened this issue Nov 3, 2014 · 4 comments
Closed

Drupal playbook error #2

victorkane opened this issue Nov 3, 2014 · 4 comments

Comments

@victorkane
Copy link
Contributor

Syntax error on the following play:

  - name: Enable upload progress via APC.
    lineinfile:
      dest: "/etc/php5/conf.d/20-apc.ini"
      regexp: "^apc\.rfc1867"
      line: "apc.rfc1867 = 1"
      state: present
    notify: restart apache

Aborts playbook on vagrant up and on successive vagrant provision calls:

$ vagrant provision
==> default: Running provisioner: ansible...
ERROR: Syntax Error while loading YAML script, provisioning/playbook.yml
Note: The error may actually appear before this position: line 95, column 21

      dest: "/etc/php5/conf.d/20-apc.ini"
      regexp: "^apc\.rfc1867"
                    ^
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
@victorkane
Copy link
Contributor Author

FYI, after commenting out the Enable upload progress via APC task in the playbook, Drupal installs in minutes as advertised. Awesome!

@geerlingguy
Copy link
Owner

I'll have to get this updated—I'm using a different method of getting APC going using my geerlingguy.php role. Thanks for letting me know!

@geerlingguy
Copy link
Owner

Fixed!

@victorkane
Copy link
Contributor Author

Sorry, still getting error after refreshing code, slightly different error but on the same lines:

TASK: [Enable upload progress via APC.] ***************************************
failed: [default] => {"failed": true, "rc": 257}
msg: Destination /etc/php5/conf.d/20-apc.ini does not exist !

FATAL: all hosts have already failed -- aborting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants