Composer installation Simple Ansible PHP composer installation role Prerequisites ansible >= 2.5 php and php-common packages on the target host Installing Run this with your ansible-playbook -i and you should be good to go. Nothing special really.