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

Ensure PHP packages are installed failed on Ubuntu 14.04 #129

Closed
smalatrait opened this issue May 19, 2016 · 3 comments
Closed

Ensure PHP packages are installed failed on Ubuntu 14.04 #129

smalatrait opened this issue May 19, 2016 · 3 comments

Comments

@smalatrait
Copy link

smalatrait commented May 19, 2016

Ubuntu 14.04, Since the change from php5 to php7, when using ansible-role-drupal, the dependencies ansible-role-php fail because php7 isn't on official 14.04 repository.

In tasks/setup-Debian.yml, adding the repository before those task are called fix the issue:

  • name: Add php7 Repo for Ubuntu 14.04.
    apt_repository: repo='ppa:ondrej/php'
  • name: Update apt cache.
    apt: update_cache=yes cache_valid_time=86400
  • name: Ensure PHP packages are installed.
    apt:
    name: "{{ item }}"
    state: installed
    with_items: "{{ php_packages }}"
    register: php_package_install
    notify: restart webserver

Did you notice the issue ? have you any idea how to fix this in a better way please ?

Forgot to add: Thanks for the good work @geerlingguy !

@geerlingguy
Copy link
Owner

@smalatrait - Sorry about that! And yes, your solution should work fine, and is great if you're okay with using PHP 7 (which is optimal for Drupal 8).

If you want to continue using PHP 5.6, then you need to make these changes: http://docs.drupalvm.com/en/latest/other/php-56/

@geerlingguy
Copy link
Owner

(See also: geerlingguy/drupal-vm#714)

@algotrader-dotcom
Copy link

Thanks geerlingguy for good work, also smalatrait for fix issue on Ubuntu 14.04, this solve my issues

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

3 participants