Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Add RedHat support and close #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sufijen Bani committed Mar 31, 2015
1 parent b6ee861 commit 19778c6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
11 changes: 9 additions & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ galaxy_info:
license: MIT
min_ansible_version: 1.5
platforms:
- name: Ubuntu
- name: EL
versions:
- all
- 6
- 7
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
categories:
- system
6 changes: 6 additions & 0 deletions tasks/all-user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- include: all-user/redhat.yml
when: ansible_os_family == 'RedHat'

- include: all-user/debian.yml
when: ansible_os_family == 'Debian'
File renamed without changes.
12 changes: 12 additions & 0 deletions tasks/all-user/redhat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---

# Option 1: Add liquidprompt to all users

- name: Copy template
template: src=liquidprompt.bashrc.j2 dest=/etc/liquidprompt.bashrc owner=root

- name: Add source file to bashrc
lineinfile:
dest: /etc/bashrc
line: "source /etc/liquidprompt.bashrc"
owner: root

0 comments on commit 19778c6

Please sign in to comment.