DevelopersPL / otshosting-provisioning

Ansible playbook to provision OTS Hosting on Ubuntu 20.04
https://github.com/DevelopersPL/otshosting-provisioning/wiki
MIT License
33 stars 29 forks source link

ubuntu 16.04 errors #5

Closed Zbizu closed 8 years ago

Zbizu commented 8 years ago

oracle vm virtualbox, ubuntu 16.04, gets stuck here:

TASK [Upgrade whole system] ****************************************************

after closing the terminal and re-executing ansible-pull I get this

TASK [Upgrade whole system] ****************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "'/usr/bin/aptitude full-upgrade' failed: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)\nE: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?\nW: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages.  Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!\nE: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)\nE: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nReading extended state information...\nInitializing package states...\nBuilding tag database...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Reading extended state information...", "Initializing package states...", "Building tag database..."]}

PLAY RECAP *********************************************************************
localhost                  : ok=13   changed=0    unreachable=0    failed=1

after os restart and executing again:

TASK [Install php5-fpm] ********************************************************
failed: [localhost] => (item=[u'php5-fpm', u'php5-apcu', u'php5-mysqlnd', u'php5-json', u'php5-cli', u'php5-curl']) => {"failed": true, "item": ["php5-fpm", "php5-apcu", "php5-mysqlnd", "php5-json", "php5-cli", "php5-curl"], "msg": "No package matching 'php5-fpm' is available"}
DSpeichert commented 8 years ago

You can help testing:

ansible-pull -i localhost, -U https://github.com/DevelopersPL/otshosting-provisioning.git -d /srv/otshosting-provisioning --purge -C xenial