Files
Cachy-workstation/roles/scripts/tasks/main.yml
T

21 lines
580 B
YAML

---
- name: Clone the scripts repo
ansible.builtin.git:
repo: git@gitea.learningunix.net:cjr/scripts.git
dest: "{{ ansible_facts['user_dir'] }}/scripts"
update: true
version: main
- name: Ensure that scripts is in the user's path
ansible.builtin.lineinfile:
path: "{{ ansible_facts['user_dir'] }}/dotfiles/zsh/.zshrc"
line: 'export PATH="$HOME/scripts:$PATH"'
state: present
- name: Deploy pushover credentials
ansible.builtin.template:
src: pushover.j2
dest: "{{ ansible_facts['user_dir'] }}/.pushover"
mode: "0600"
no_log: true