Fix ansible 2 deprecation warnings.

This commit is contained in:
Glenn Y. Rolland 2016-04-13 00:17:33 +02:00
parent 364735f5a7
commit 69f8e29d33

View file

@ -9,27 +9,27 @@
# tasks file for roles/glenux.bash # tasks file for roles/glenux.bash
- name: Install main configuration files for bash - name: Install main configuration files for bash
copy: copy: >
src={{item[1]}} src="{{item[1]}}"
dest=~/.{{item[1]|basename}} dest="~/.{{item[1]|basename}}"
mode=0644 mode=0644
become: true become: true
become_user: "{{item[0]}}" become_user: "{{item[0]}}"
with_nested: with_nested:
- bash_users - "{{bash_users}}"
- ['bashrc', 'bash_profile', 'bash_aliases'] - ['bashrc', 'bash_profile', 'bash_aliases']
- name: Create bashrc.d directory - name: Create bashrc.d directory
file: path=~/.bashrc.d state=directory file: path=~/.bashrc.d state=directory
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: "src={{item[1]}} dest=~/.bashrc.d/{{item[1]|basename}}" copy: "src={{item[1]}} dest=~/.bashrc.d/{{item[1]|basename}}"
become: true become: true
become_user: "{{item[0]}}" become_user: "{{item[0]}}"
with_nested: with_nested:
- bash_users - "{{bash_users}}"
- bash_scripts.stdout_lines - "{{bash_scripts.stdout_lines}}"