38 lines
832 B
YAML
38 lines
832 B
YAML
---
|
|
- name: Include vault variables
|
|
include_vars: vault.yml
|
|
|
|
- name: Install profanity (Archlinux)
|
|
become: true
|
|
pacman:
|
|
name:
|
|
- profanity
|
|
when: ansible_facts['distribution'] == 'Archlinux'
|
|
|
|
- name: Install profanity (Debian)
|
|
become: true
|
|
apt:
|
|
name:
|
|
- profanity
|
|
default_release: bullseye-backports
|
|
when: ansible_facts['distribution'] == 'Debian'
|
|
|
|
- name: Create needed directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: 0755
|
|
with_items:
|
|
- ~/.config/profanity
|
|
- ~/.local/share/profanity
|
|
|
|
- name: Copy profanity config
|
|
copy: src={{ item.src }} dest={{ item.dest }} mode=0644
|
|
with_items:
|
|
- {src: 'profrc', dest: '~/.config/profanity/profrc'}
|
|
|
|
- name: Copy accounts
|
|
template:
|
|
src: accounts.j2
|
|
dest: ~/.local/share/profanity/accounts
|
|
mode: 0600
|