Hello again! I’ve asked my question on GitHub issues of Trellis repository already where I was pointed to Roots’s Discourse as a more appropriate place.
So! I am trying to wrap my head around ansible-playbook -i hosts/production server.yml
command. If I understand the purpose of this correctly, it should provision my remote environment (shared hosting in my case) with Ansible roles before deploying of my project.
The command fails with the following error:
| => ansible-playbook -i hosts/production server.yml
PLAY [Determine Remote User] **************************************************
TASK: [remote-user | Determine whether to connect as root or admin_user] ******
ok: [web713@cibulka.me -> 127.0.0.1]
TASK: [remote-user | Set remote user for each host] ***************************
ok: [web713@cibulka.me]
PLAY [WordPress Server - Install LEMP Stack with PHP 5.6 and MariaDB MySQL] ***
GATHERING FACTS ***************************************************************
ok: [web713@cibulka.me]
TASK: [common | Validate Ansible version] *************************************
ok: [web713@cibulka.me]
TASK: [common | Update Apt] ***************************************************
failed: [web713@cibulka.me] => {"cmd": "apt-get update '&&' apt-get install python-apt -y -q", "failed": true, "rc": 127}
stderr: /bin/sh: apt-get: command not found
msg: /bin/sh: apt-get: command not found
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/Cibulka/server.retry
web713@cibulka.me : ok=4 changed=0 unreachable=0 failed=1
And yes, after SSHing into /usr/bin
directory of my host, there does not seem to be any aptitude package.
Is there any way around this? And more importantly, is there any list of requirements that the hosting should meet, if I want to use Trellis for staging and deployment?
Sorry again for my general lack of knowledge when it comes to provisioning/deployments - it was today when i bought the awesome Roots Capistrano screencast and started pretty much from there.
Thank you.