Add role profanity
This commit is contained in:
parent
ed5e29e82e
commit
eadca53553
3 changed files with 29 additions and 0 deletions
|
@ -38,3 +38,4 @@
|
||||||
- {role: gaming, tags: gaming}
|
- {role: gaming, tags: gaming}
|
||||||
- {role: etckeeper, tags: etckeeper}
|
- {role: etckeeper, tags: etckeeper}
|
||||||
- {role: neomutt, tags: neomutt}
|
- {role: neomutt, tags: neomutt}
|
||||||
|
- {role: profanity, tags: profanity}
|
||||||
|
|
3
roles/profanity/meta/main.yml
Normal file
3
roles/profanity/meta/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
- role: check-sudo
|
25
roles/profanity/tasks/main.yml
Normal file
25
roles/profanity/tasks/main.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
- name: Install profanity (Archlinux)
|
||||||
|
become: true
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- profanity
|
||||||
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
|
- name: Install profanity (Debian)
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- profanity
|
||||||
|
when: ansible_facts['distribution'] == 'Debian'
|
||||||
|
|
||||||
|
- name: Create needed directory
|
||||||
|
file:
|
||||||
|
path: ~/.config/profanity
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Copy profanity config
|
||||||
|
copy: src={{ item.src }} dest={{ item.dest }} mode=0644
|
||||||
|
with_items:
|
||||||
|
- {src: 'profrc', dest: '~/.config/profanity/profrc'}
|
Loading…
Add table
Reference in a new issue