Finalize bashrc scripts deployment.

This commit is contained in:
Glenn Y. Rolland 2015-11-17 14:39:41 +01:00
parent 27bcd77840
commit 006bca4440

View file

@ -1,21 +1,17 @@
---
- name: List installable sh scripts
command: ls -1 bashrc.d/*.sh
shell: ls -1 "{{role_path}}/files/bashrc.d/"*.sh
register: bash_scripts
# tasks file for roles/glenux.bash
- name: Install bashrc
copy:
src=bashrc
dest=~/.bashrc
copy: src=bashrc dest=~/.bashrc
become: true
become_user: "{{item}}"
with_items: bash_users
- name: Install bashrc.d files
copy: >
"src={{item}}"
"dest=~/.bashrc.d/{{item[1]|basename}}"
copy: "src={{item[1]}} dest=~/.bashrc.d/{{item[1]|basename}}"
become: true
become_user: "{{item[0]}}"
with_nested: