Sorry for posting so much within a short span of time - I don’t know what my problem is with roots these days…
I’m spinning up a new server to replace the staging site on an existing wordpress site. It’s an Ubuntu 20.04, and it’s all set up and ready to have a site added to it, but for some reason I’m not able to deploy to/provision it.
I think the issue might stem from a local issue - I’m not able to provision my local server with vagrant provision
or start the local server with vagrant up
. The error message for both commands is:
TASK [Gathering Facts] *********************************************************
System info:
Ansible 2.3.0.0; Vagrant 2.2.5; Linux
Trellis at "Add Vagrant config"
---------------------------------------------------
Could not find imported module support code for setup. Looked for either
PrefixFactNamespace.py or namespace.py
When trying to provision the remote server, I get this error:
TASK [connection : Check whether Ansible can connect as root] ************************************************************************************
System info:
Ansible 2.3.0.0; Linux
Trellis at "Add Vagrant config"
---------------------------------------------------
Could not find imported module support code for command. Looked for either
is_iterable.py or collections.py
I’m not sure if this is relevant, but for a while (up until the point of writing this), provisioning seemed to get much further, and was throwing a different error:
no package matching 'php7.1-cli' is *available failed* : [default] (item=[u'php7.1-cli', u'php7.1-common', u'php7.1-curl', u'php7.1-dev', u'php7.1-fpm', u'php7.1-gd', u'php7.1-mbstring', u'php7.1-mcrypt', u'php7.1-mysql', u'php7.1-opcache', u'php7.1-xml', u'php7.1-xmlrpc', u'php7.1-zip']) => {"failed": true, "item": ["php7.1-cli", "php7.1-common", "php7.1-curl", "php7.1-dev", "php7.1-fpm", "php7.1-gd", "php7.1-mbstring", "php7.1-mcrypt", "php7.1-mysql", "php7.1-opcache", "php7.1-xml", "php7.1-xmlrpc", "php7.1-zip"]}
Anisble 2.3
PHP 7.2
Vagrant 2.2.5
Linux mint cinnamon 3.8.8
Ubuntu 20.04 (remote server)
Thank you for reading this. Let me know if you have any ideas or advice for troubleshooting.
All the best,
Jill