Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

TASK Purge PHP version packages. Fails #1319

@mglaman

Description

@mglaman

Issue Type

  • Bug Report

Your Environment

Local

$ vboxmanage --version
5.1.18r114002

$ ansible --version
ansible 2.3.0.0
  config file = /Users/mglaman/Clients/commerceguys/reports-leancom/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Apr  4 2017, 08:47:57) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)]

Production


Your OS

  • macOS 10.12.4
  • Linux ubuntu 16

Full console output

DRUPALVM_ENV=prod ansible-playbook -i vm/inventory vendor/geerlingguy/drupal-vm/provisioning/playbook.yml -e "config_dir=$(pwd)/vm" --sudo --tags=drupal --extra-vars "ansible_become_pass=${ANSIBLE_VAULT_PASSWORD}"

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [104.236.244.212]

TASK [Define config_dir.] ******************************************************
skipping: [104.236.244.212]

TASK [Include optional configuration files.] ***********************************
ok: [104.236.244.212] => (item=/home/ubuntu/dashboard/vm/config.yml)
ok: [104.236.244.212] => (item=/home/ubuntu/dashboard/vm/prod.config.yml)

TASK [Define fully qualified domain name.] *************************************
ok: [104.236.244.212]

TASK [Define short hostname.] **************************************************
ok: [104.236.244.212]

TASK [Add hostname to /etc/hosts.] *********************************************
ok: [104.236.244.212]

TASK [Configure hostname.] *****************************************************
ok: [104.236.244.212]

TASK [Set the hostname for current session.] ***********************************
skipping: [104.236.244.212]

TASK [include] *****************************************************************
included: /home/ubuntu/dashboard/vendor/geerlingguy/drupal-vm/provisioning/tasks/init-debian.yml for 104.236.244.212

TASK [Update apt cache if needed.] *********************************************
ok: [104.236.244.212]

TASK [Install required dependencies.] ******************************************
ok: [104.236.244.212] => (item=[u'curl', u'python-apt', u'python-pycurl', u'sudo', u'unzip', u'make'])

TASK [Configure /etc/mailname.] ************************************************
ok: [104.236.244.212]

TASK [Define php_xhprof_html_dir.] *********************************************
skipping: [104.236.244.212]

TASK [Add repository for Apache 2.4.9+ (Ubuntu 12/14).] ************************
skipping: [104.236.244.212]

TASK [Add repository for PHP versions (Ubuntu).] *******************************
ok: [104.236.244.212]

TASK [Add repository for PHP 5 compatibility packages (Ubuntu).] ***************
skipping: [104.236.244.212]

TASK [Set the correct opcache filename (Ubuntu).] ******************************
ok: [104.236.244.212]

TASK [Add dependencies for PHP versions (Debian).] *****************************
skipping: [104.236.244.212] => (item=[]) 

TASK [Add Ondrej Sury's apt key (Debian).] *************************************
skipping: [104.236.244.212]

TASK [Add Ondrej Sury's repo (Debian).] ****************************************
skipping: [104.236.244.212]

TASK [Update apt caches after repo is added (Debian).] *************************
skipping: [104.236.244.212]

TASK [Purge PHP version packages.] *********************************************
fatal: [104.236.244.212]: FAILED! => {"failed": true, "msg": "'php_packages' is undefined"}
	to retry, use: --limit @/home/ubuntu/dashboard/vendor/geerlingguy/drupal-vm/provisioning/playbook.retry

PLAY RECAP *********************************************************************
104.236.244.212            : ok=12   changed=0    unreachable=0    failed=1   


DRUPALVM_ENV=prod ansible-playbook -i vm/inventory vendor/geerlingguy/drupal-vm/provisioning/playbook.yml -e "config_dir=$(pwd)/vm" --sudo --tags=drupal --extra-vars "ansible_become_pass=${ANSIBLE_VAULT_PASSWORD}" returned exit code 2

Action failed: DRUPALVM_ENV=prod ansible-playbook -i vm/inventory vendor/geerlingguy/drupal-vm/provisioning/playbook.yml -e "config_dir=$(pwd)/vm" --sudo --tags=drupal --extra-vars "ansible_become_pass=${ANSIBLE_VAULT_PASSWORD}"

Summary

Updated to latest version. The purging of PHP packages fails due to "'php_packages' is undefined". I tried to manually define copying what the whole provides:

+php_packages: "{{ __php_packages | list }}"

Which returns, then:

TASK [Purge PHP version packages.] ***********************************************************************************************************************************************************************************************************
fatal: [104.236.244.212]: FAILED! => {"failed": true, "msg": "{{ __php_packages | list }}: '__php_packages' is undefined"}
	to retry, use: --limit @/Users/mglaman/Clients/commerceguys/reports-leancom/vendor/geerlingguy/drupal-vm/provisioning/playbook.retry

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions