---
- name: Update apt
  sudo: yes
  apt: update_cache=yes

- name: Install System Packages
  sudo: yes
  apt: pkg={{ item }} state=latest
  with_items:
    - curl
    - wget
    - python-software-properties
    - acl
    - git

- name: Add ppa Repository
  sudo: yes
  apt_repository: repo=ppa:ondrej/{{ php_ppa }}

- name: Update apt
  sudo: yes
  apt: update_cache=yes

- name: Install Extra Packages
  sudo: yes
  apt: pkg={{ item }} state=latest
  with_items: sys_packages

- name: Make sure project directory exists
  sudo: yes
  file: path={{ project_root }} state=directory owner={{ system_user }} group={{ system_group }}

- name: Set system ACL mask
  shell: 'setfacl -Rn -m m:rwX {{ project_root }}'

- name: Set system user ACLs
  shell: 'setfacl -Rn -m u:"{{ system_user }}":rwX {{ project_root }}'

---
- name: Update apt
  sudo: yes
  apt: update_cache=yes

- name: Install System Packages
  sudo: yes
  apt: pkg={{ item }} state=latest
  with_items:
    - curl
    - wget
    - python-software-properties
    - acl
    - git

- name: Add ppa Repository
  sudo: yes
  apt_repository: repo=ppa:ondrej/{{ php_ppa }}

- name: Update apt
  sudo: yes
  apt: update_cache=yes

- name: Install Extra Packages
  sudo: yes
  apt: pkg={{ item }} state=latest
  with_items: sys_packages
Remove conflictive steps for mac users..
Remove conflictive steps for mac users..
