25 lines
552 B
YAML
25 lines
552 B
YAML
---
|
|
- 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'}
|