Remote Server Deploy fails

When running ansible-playbook server.yml -e env=production

I get the following error:
ERROR: problem running /Users/username/Sites/webs/mysite.com/trellis/hosts/development --list ([Errno 8] Exec format error)

Not sure what is happening.

Searching discourse for that error, it seems like a permissions issue with files in your hosts directory.

If you’re on Windows, see this: Remote Server Setup on Windows

Otherwise, see this: Exec format error / Hosts chmod And if you’re not on Windows, this seems like a new error I haven’t seen before. Could you tell us your OS? Has deployment ever succeeded in the past? Could you post any more of the output (if there is more)? Could you tell us of any customizations you think might be relevant? Thanks!

Could you also let us know your Ansible version? ansible-playbook --version

Thanks for the help.

I’m on OSX 10.11.2. Should have mentioned this at the start.
The only real customization I made was to enable Multisite.

Version of Ansible Playbook is 1.9.4

Found fix here: Exec format error / Hosts chmod

1 Like