I have an Ansible playbook for establishing LAMP environments on remote machines.
Part of this playbook deals with installing Composer:
- name: Install Composer get_url: url: https://getcomposer.org/installer dest: /tmp/composer-setup.php command: php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
Instead these 5-lines structure I was thinking of using this
ansible-galaxy command inside the playbook:
ansible-galaxy install geerlingguy.composer
geerlingguy.composer is the most communally supported AG role with more than million users (so I assume that if there is a problem and Jeff isn't around at the moment - say, took vacation in Hawaii or something, there will be many community members to fix the problem and ensure stability.
Using this will also shorten my already quite-long playbook.
Why is Ansible-Galaxy role by our beloved Geerling (and some other similar roles) all include in GitHub the directories
templates and the
.travis.yml file? in other words, Why a single playbook such as the one I wrote isn't enough?