---
- hosts: all
  roles:
    - hostname
    - timezone
    - ntp
    - cron
    - ssmtp
    - fstrim
    - sysctl
    - makepkg
    - ssh-keys
    - ssh-client
    - backup
    - dotfiles
    - vim
    - docker
    - { role: packages, packages: "{{ host_packages }}" }
    - { role: services, services: "{{ host_services }}" }
    - { role: packages-uninstalled, packages: "{{ host_uninstalled_packages }}" }
    - { role: packages, packages: ['smartmontools', 'lm_sensors'] }
    - { role: services, services: ['acpid', 'smartd', 'alsa-restore', 'fstrim.timer'] }

- hosts: desktop
  roles:
    - xorg
    - desktop
    - fonts
    - cinnamon
    - composer
    - conky
    - zim
    - samba-client
    - node
    - firefox
    - { role: yaourt-packages, packages: "{{ aur_packages }}" }

- hosts: laptop
  roles:
    - { role: packages, packages: ['tlp', 'tlp-rdw'] }
    - { role: services, services: ['tlp', 'tlp-sleep'] }

- hosts: macbook-linux
  roles:
    - { role: yaourt-packages, packages: ['mbpfan-git'] }
    - { role: services, services: ['mbpfan'] }

---
- hosts: all
  roles:
    - hostname
    - timezone
    - ntp
    - cron
    - ssmtp
    - fstrim
    - sysctl
    - makepkg
    - ssh-keys
    - ssh-client
    - backup
    - dotfiles
    - vim
    - docker
    - php
    - { role: packages, packages: "{{ host_packages }}" }
    - { role: services, services: "{{ host_services }}" }
    - { role: packages-uninstalled, packages: "{{ host_uninstalled_packages }}" }
    - { role: packages, packages: ['smartmontools', 'lm_sensors'] }
    - { role: services, services: ['acpid', 'smartd', 'alsa-restore', 'fstrim.timer'] }

- hosts: desktop
  roles:
    - xorg
    - desktop
    - fonts
    - cinnamon
    - conky
    - zim
    - samba-client
    - node
    - firefox
    - { role: yaourt-packages, packages: "{{ aur_packages }}" }

- hosts: laptop
  roles:
    - { role: packages, packages: ['tlp', 'tlp-rdw'] }
    - { role: services, services: ['tlp', 'tlp-sleep'] }

- hosts: macbook-linux
  roles:
    - { role: yaourt-packages, packages: ['mbpfan-git'] }
    - { role: services, services: ['mbpfan'] }

Replace composer role with php role
Replace composer role with php role
