ansible-role--bashrc/tasks/main.yml

25 lines
477 B
YAML
Raw Normal View History

2015-11-11 09:56:13 +00:00
---
2015-11-17 13:20:58 +00:00
- name: List installable sh scripts
command: ls -1 bashrc.d/*.sh
register: bash_scripts
2015-11-11 09:56:13 +00:00
# tasks file for roles/glenux.bash
2015-11-17 11:07:59 +00:00
- name: Install bashrc
2015-11-17 13:20:58 +00:00
copy:
src=bashrc
dest=~/.bashrc
become: true
become_user: "{{item}}"
with_items: bash_users
2015-11-17 11:07:59 +00:00
- name: Install bashrc.d files
2015-11-17 13:20:58 +00:00
copy: >
2015-11-17 11:07:59 +00:00
"src={{item}}"
2015-11-17 13:20:58 +00:00
"dest=~/.bashrc.d/{{item[1]|basename}}"
become: true
become_user: "{{item[0]}}"
2015-11-17 11:07:59 +00:00
with_nested:
- bash_users
2015-11-17 13:20:58 +00:00
- bash_scripts.stdout_lines