amazon linuxにansibleでphp5.6をインストールするとき
yumのリポジトリを明示的にdisabledしてあげないとphp 5.3.9が入ってしまうので、以下のように対応した。
- name: install epel/remi repos yum: name={{item}} with_items: - http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm - http://rpms.famillecollet.com/enterprise/remi-release-6.rpm - name: install PHP yum: name={{item}} state=latest disablerepo=amzn-updates/latest,amzn-main/latest enablerepo=remi-php56 with_items: - php - php-mbstring - php-mysql - libmcrypt - libmcrypt-devel - php-mcrypt