ansible-city.composer

PHP Composer

Master: Build Status
Develop: Build Status

This role installs and configures PHP Composer.

ansible.cfg

This role is designed to work with merge "hash_behaviour". Make sure your ansible.cfg contains these settings

[defaults]
hash_behaviour = merge

Installation and Dependencies

This role has no dependencies, but you need PHP cli to be available.

Tags

This role uses two tags: build and configure

  • build - Installs composer.
  • configure - Configures composer.

Examples

Simply install composer.

- name: Install PHP Composer
  hosts: sandbox

  roles:
    - role: ansible-city.composer
      composer:
        user: my_application
        install_dir: /home/my_application/bin

Install composer and configure github access

- name: Install and Configure PHP Composer
  hosts: sandbox

  roles:
    - role: ansible-city.composer
      composer:
        user: my_application
        install_dir: /home/my_application/bin
        auth:
          github:
            github.com: qwerty654321
          http:
            repo.example.org:
              username: username
              password: secretP4ssword
About

Installs and configures PHP Composer

Install
ansible-galaxy install ansible-city.composer
GitHub repository
License
mit
Downloads
214