Skip to content

Commit

Permalink
add lnmp_install pcre role
Browse files Browse the repository at this point in the history
  • Loading branch information
denglei committed Sep 3, 2014
1 parent 567492a commit 78ec0fa
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lnmp_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 lnmp_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 lnmp_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 lnmp_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 lnmp_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 lnmp_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 lnmp_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 lnmp_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 lnmp_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 lnmp_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 78ec0fa

Please sign in to comment.