moved OS-specific commands to separate includes
moved dependency installs, firewalld into specific includes
dependent on ansible_os_family - so far these exist for
Debian and RedHat
file: path="{{ doc_root_dir }}" state=directory
become: yes
-- name: Install pre-requireties
- yum: name="{{ item }}" state=latest update_cache=yes
- with_items:
- - git
- - httpd
- - php
- - php-soap
- - libselinux-python
- - php-pdo
- become: yes
-
-# - name: Allow selinux outbound connection from web server
- # command: setsebool -P httpd_can_network_connect 1
-
-- name: install composer
- shell: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- args:
- creates: /usr/local/bin/composer
- become: yes
-
-- name: install epel release
- yum: name=epel-release state=present
- become: yes
-
-# depend on epel release
-- name: install mcrypt
- yum: name=php-mcrypt state=latest update_cache=yes
- become: yes
+- include: install_deps_{{ ansible_os_family }}.yml
# - name: Check previous deployments
# stat: path="{{ doc_root_dir }}" get_md5=no get_checksum=no
