Finalize bashrc scripts deployment.
This commit is contained in:
parent
27bcd77840
commit
006bca4440
1 changed files with 3 additions and 7 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue