Mit Ansible kann man sehr einfach alle PHP7 von Ondrej’s Respository installieren mittels der Befehle:
- name: Remove old PHP7 ppa repository apt_repository: repo='ppa:ondrej/php-7.0' state=absent - name: Add PHP7 ppa repository apt_repository: repo='ppa:ondrej/php' - name: Install packages apt: pkg={{ item }} state=latest update_cache=yes with_items: - mysql-client - nginx - php7.0-cli - php7.0-fpm - php7.0-dev - php7.0-curl - php7.0-gd - php7.0-mbstring - php7.0-mcrypt - php7.0-mysql - php7.0-soap - php7.0-sqlite3 - php7.0-xml - php7.0-zip - php7.0-bcmath - php7.0-ssh2 - php-rrd - git - zlibc tags: - php