Skip to content

Commit

Permalink
Support Archlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcclure committed Jun 13, 2017
1 parent 9473bae commit d5802c8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ galaxy_info:
- name: Ubuntu
versions:
- all
- name: Archlinux
versions:
- all
galaxy_tags:
- database
- development
Expand Down
3 changes: 3 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'

- include: setup-Archlinux.yml
when: ansible_os_family == 'Archlinux'

- name: Ensure Redis is configured.
template:
src: redis.conf.j2
Expand Down
5 changes: 5 additions & 0 deletions tasks/setup-Archlinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Ensure Redis is installed.
pacman:
name: "{{ redis_package }}"
state: present
4 changes: 4 additions & 0 deletions vars/Archlinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
__redis_package: redis
redis_daemon: redis
redis_conf_path: /etc/redis.conf

0 comments on commit d5802c8

Please sign in to comment.