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
MODIFY
dev-tools/ansible/roles/pga/tasks/main.yml
dev-tools/ansible/roles/pga/tasks/main.yml
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

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