Skip to content
This repository has been archived by the owner on Mar 1, 2020. It is now read-only.

Commit

Permalink
added Ubuntu support
Browse files Browse the repository at this point in the history
  • Loading branch information
include committed Sep 13, 2014
1 parent c1e4c36 commit f8ee52b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 7 additions & 11 deletions tasks/CentOS.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
---

- name: SYSTEM | download epel-release
get_url: url={{ epel_release_url }} dest=/tmp mode=0440
tags: get_epel
- name: CentOS | SYSTEM | install epel-release
yum: name=epel-release state=present
tags: install epel-release

- name: SYSTEM | install epel-release
yum: name=/tmp/{{ epel_release_pkg }} state=present
tags: install_epel

- name: PRITUNL | download
- name: CentOS | PRITUNL | download
get_url: url={{ pritunl_url }} dest=/tmp mode=0440
tags: get_pritunl

- name: PRITUNL | install
- name: CentOS | PRITUNL | install
yum: name=/tmp/{{ pritunl_pkg }} state=present
tags: install_pritunl

- name: PRITUNL | start service
- name: CentOS | PRITUNL | start service
service: name=pritunl state=started
tags: start_pritunl

- name: PRITUNL | enable service
- name: CentOS | PRITUNL | enable service
service: name=pritunl enabled=yes
tags: enable_pritunl
6 changes: 5 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

- name: SYSTEM | check Centos version
include: CentOS.yml
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'

- name: SYSTEM | check Ubuntu
include: Ubuntu.yml
when: ansible_distribution == 'Ubuntu'

0 comments on commit f8ee52b

Please sign in to comment.