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