moving files to new distro/version name moved include files to new scheme with distro and major version instead of only os_family
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/d43efb5c Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/d43efb5c Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/d43efb5c Branch: refs/heads/ansible-testing-0.17 Commit: d43efb5c19d8196a8e29323c4bc77015dd3e89d8 Parents: b49aea3 Author: jecoulte <[email protected]> Authored: Wed Feb 8 13:16:16 2017 -0500 Committer: jecoulte <[email protected]> Committed: Wed Feb 8 13:16:16 2017 -0500 ---------------------------------------------------------------------- .../roles/pga/tasks/install_deps_CentOS_7.yml | 33 +++++++++++ .../roles/pga/tasks/install_deps_Debian.yml | 48 --------------- .../roles/pga/tasks/install_deps_RedHat.yml | 33 ----------- .../roles/pga/tasks/install_deps_Ubuntu_14.yml | 48 +++++++++++++++ .../roles/pga/tasks/install_deps_Ubuntu_16.yml | 61 ++++++++++++++++++++ 5 files changed, 142 insertions(+), 81 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/d43efb5c/dev-tools/ansible/roles/pga/tasks/install_deps_CentOS_7.yml ---------------------------------------------------------------------- diff --git a/dev-tools/ansible/roles/pga/tasks/install_deps_CentOS_7.yml b/dev-tools/ansible/roles/pga/tasks/install_deps_CentOS_7.yml new file mode 100644 index 0000000..e2b5ea3 --- /dev/null +++ b/dev-tools/ansible/roles/pga/tasks/install_deps_CentOS_7.yml @@ -0,0 +1,33 @@ +--- + +- 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 + +#OS_dep +# depend on epel release +- name: install mcrypt + yum: name=php-mcrypt state=latest update_cache=yes + become: yes + http://git-wip-us.apache.org/repos/asf/airavata/blob/d43efb5c/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml ---------------------------------------------------------------------- diff --git a/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml b/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml deleted file mode 100644 index c9d601c..0000000 --- a/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- - -- name: Install prerequisites - apt: name="{{ item }}" state=latest update_cache=yes - with_items: - - git - - apache2 - - python-selinux - - unzip - - openssl - - curl - - php5 - - php5-curl - - php-soap - - php5-mysql - - php5-mcrypt - - python-software-properties - become: yes - -- 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: php5enmod 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 http://git-wip-us.apache.org/repos/asf/airavata/blob/d43efb5c/dev-tools/ansible/roles/pga/tasks/install_deps_RedHat.yml ---------------------------------------------------------------------- diff --git a/dev-tools/ansible/roles/pga/tasks/install_deps_RedHat.yml b/dev-tools/ansible/roles/pga/tasks/install_deps_RedHat.yml deleted file mode 100644 index e2b5ea3..0000000 --- a/dev-tools/ansible/roles/pga/tasks/install_deps_RedHat.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- - -- 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 - -#OS_dep -# depend on epel release -- name: install mcrypt - yum: name=php-mcrypt state=latest update_cache=yes - become: yes - http://git-wip-us.apache.org/repos/asf/airavata/blob/d43efb5c/dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_14.yml ---------------------------------------------------------------------- diff --git a/dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_14.yml b/dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_14.yml new file mode 100644 index 0000000..c9d601c --- /dev/null +++ b/dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_14.yml @@ -0,0 +1,48 @@ +--- + +- name: Install prerequisites + apt: name="{{ item }}" state=latest update_cache=yes + with_items: + - git + - apache2 + - python-selinux + - unzip + - openssl + - curl + - php5 + - php5-curl + - php-soap + - php5-mysql + - php5-mcrypt + - python-software-properties + become: yes + +- 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: php5enmod 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 http://git-wip-us.apache.org/repos/asf/airavata/blob/d43efb5c/dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_16.yml ---------------------------------------------------------------------- diff --git a/dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_16.yml b/dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_16.yml new file mode 100644 index 0000000..aa295ca --- /dev/null +++ b/dev-tools/ansible/roles/pga/tasks/install_deps_Ubuntu_16.yml @@ -0,0 +1,61 @@ +--- + +- 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
