Clone shirenn's configuration
This commit is contained in:
30
roles/scripts/tasks/main.yml
Normal file
30
roles/scripts/tasks/main.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: Queries package manager for graphical instalation
|
||||
package:
|
||||
name:
|
||||
- scrot
|
||||
- network-manager-applet
|
||||
- acpi
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
become: yes
|
||||
|
||||
- name: Clone scripts git repo
|
||||
git:
|
||||
repo: '{{ scripts.git }}'
|
||||
dest: '.local/src/scripts'
|
||||
|
||||
- name: Find scripts
|
||||
find:
|
||||
path: '.local/src/scripts'
|
||||
pattern: "*"
|
||||
register: scripts
|
||||
|
||||
- name: Link scripts
|
||||
file:
|
||||
src: '/home/{{ user.name }}/{{ item.path }}'
|
||||
dest: '.local/bin/{{ item.path | basename }}'
|
||||
state: link
|
||||
force: yes
|
||||
with_items: '{{ scripts.files }}'
|
Reference in New Issue
Block a user