moving files to new distro/version name
moved include files to new scheme with distro
and major version instead of only os_family
RENAME
dev-tools/ansible/roles/pga/tasks/install_deps_RedHat.yml
dev-tools/ansible/roles/pga/tasks/install_deps_CentOS_7.yml
RENAME
dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml
dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_14.yml
ADD
dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_16.yml
+---
+
+- name: Install prerequisites
+ apt: name="{{ item }}" state=latest update_cache=yes
+ with_items:
+ - git
+ - apache2
+ - libapache2-mod-php
+ - python-selinux
+ - python-apt
+ - unzip
+ - openssl
+ - curl
+ - php
+ - php-curl
+ - php-soap
+ - php-mysql
+ - php-mcrypt
+ - python-software-properties
+ become: yes
+
+- name: get python2-firewalld module...
+ unarchive:
+ src: https://github.com/hryamzik/python-firewalld/files/182007/python-firewalld_0.1-0.deb.zip
+ dest: /tmp/
+ remote_src: true
+
+- name: install python-firewalld
+ apt:
+ deb: /tmp/python-firewalld_0.1-0.deb
+#https://github.com/hryamzik/python-firewalld/files/182007/python-firewalld_0.1-0.deb.zip
+
+- 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
+
+# this just creates symlinks in /etc/php5/{apache2,cli}/conf.d/20-mcryp.ini to /etc/php5/modules-avail/mcrypt.ini
+- name: enable mcrypt
+ command: phpenmod mcrypt
+ become: yes
+
+- name: enable apache rewrite
+ command: a2enmod rewrite
+ become: yes
+
+- name: create apache2 logdir
+ file:
+ path: /etc/apache2/logs
+ state: directory
+ owner: www-data
+ group: www-data
+ mode: 0775
+
+- name: set DocumentRoot in default site-enabled
+ lineinfile:
+ dest: /etc/apache2/sites-enabled/000-default.conf
+ line: ' DocumentRoot "/var/www/html/php-gateway/public"'
+ regexp: '^\s+DocumentRoot'
+ state: present

moving files to new distro/version name

moved include files to new scheme with distro
and major version instead of only os_family