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