Skip to content

Commit

Permalink
add pcre role
Browse files Browse the repository at this point in the history
  • Loading branch information
denglei committed Aug 29, 2014
1 parent adbaa2a commit 2256394
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nginx_install/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- name: Install initializtion require software
shell: yum -y install make cmake bc gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5-devel libidn libidn-devel openssl openssl-devel nss_ldap openldap openldap-devel openldap-clients openldap-servers libxslt-devel libevent-devel ntp libtool-ltdl bison libtool vim-enhanced tar wget readline-devel libyaml-devel patch telnet dmidecode
shell: yum -y install make cmake bc gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5-devel libidn libidn-devel openssl openssl-devel nss_ldap openldap openldap-devel openldap-clients openldap-servers libxslt-devel libevent-devel ntp libtool-ltdl bison libtool vim-enhanced tar wget readline-devel libyaml-devel patch telnet dmidecode libselinux-python
poll: 0
12 changes: 12 additions & 0 deletions nginx_install/roles/pcre_delete/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
galaxy_info:
author: Deng Lei
description: Delete Pcre
license: MIT
min_ansible_version: 1.6
platforms:
- name: CentOS
versions:
- 6
categories:
- Service
dependencies: []
3 changes: 3 additions & 0 deletions nginx_install/roles/pcre_delete/tasks/delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- name: Delete Pcre
shell: rm -rf /usr/local/pcre-{{ pcre_version }}
when: ansible_os_family == "RedHat" and ansible_distribution_version|int >=6
1 change: 1 addition & 0 deletions nginx_install/roles/pcre_delete/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- include: delete.yml
1 change: 1 addition & 0 deletions nginx_install/roles/pcre_delete/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pcre_version: 8.33
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions nginx_install/roles/pcre_install/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
galaxy_info:
author: Deng Lei
description: Install Pcre
license: MIT
min_ansible_version: 1.6
platforms:
- name: CentOS
versions:
- 6
categories:
- Service
dependencies: []
3 changes: 3 additions & 0 deletions nginx_install/roles/pcre_install/tasks/copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- name: Copy Pcre Software To Redhat Client
copy: src=pcre-{{ pcre_version }}.tar.gz dest=/tmp/pcre-{{ pcre_version }}.tar.gz owner=root group=root mode=0755
when: ansible_os_family == "RedHat" and ansible_distribution_version|int >=6
3 changes: 3 additions & 0 deletions nginx_install/roles/pcre_install/tasks/delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- name: Delete Pcre Software In Redhat Client
shell: rm -rf /tmp/pcre-{{ pcre_version }}.tar.gz
when: ansible_os_family == "RedHat" and ansible_distribution_version|int >=6
3 changes: 3 additions & 0 deletions nginx_install/roles/pcre_install/tasks/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- name: Uncompression Pcre Software In Redhat Client
shell: tar zxf /tmp/pcre-{{ pcre_version }}.tar.gz -C /usr/local/
when: ansible_os_family == "RedHat" and ansible_distribution_version|int >=6
3 changes: 3 additions & 0 deletions nginx_install/roles/pcre_install/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- include: copy.yml
- include: install.yml
- include: delete.yml
1 change: 1 addition & 0 deletions nginx_install/roles/pcre_install/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pcre_version: 8.33

0 comments on commit 2256394

Please sign in to comment.