Browse Source

Add role to configure shell and applications via shellrc repository

master
Maxim Likhachev 6 years ago
parent
commit
f77e42ffaa
  1. 18
      roles/shellrc/tasks/main.yml
  2. 5
      roles/shellrc/vars/main.yml

18
roles/shellrc/tasks/main.yml

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
---
- name: Clone shellrc repository
git:
repo: "{{ shellrc_git }}"
dest: "{{ shellrc_path }}"
version: master
clone: yes
update: yes
force: no
ignore_errors: yes
- name: Configure Shell and applications
shell: installrc.sh
args:
chdir: "{{ shellrc_path }}/etc/"
ignore_errors: yes

5
roles/shellrc/vars/main.yml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
---
shellrc_git: "https://code.envrm.info/src/shellrc.git"
shellrc_path: "~/.shellrc/"
Loading…
Cancel
Save