From 69f8e29d338c7cc71efa8ed4a855357d0ae787c1 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Wed, 13 Apr 2016 00:17:33 +0200 Subject: [PATCH] Fix ansible 2 deprecation warnings. --- tasks/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index e102055..6db7528 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,27 +9,27 @@ # tasks file for roles/glenux.bash - name: Install main configuration files for bash - copy: - src={{item[1]}} - dest=~/.{{item[1]|basename}} + copy: > + src="{{item[1]}}" + dest="~/.{{item[1]|basename}}" mode=0644 become: true become_user: "{{item[0]}}" with_nested: - - bash_users + - "{{bash_users}}" - ['bashrc', 'bash_profile', 'bash_aliases'] - name: Create bashrc.d directory file: path=~/.bashrc.d state=directory become: true become_user: "{{item}}" - with_items: bash_users + with_items: "{{bash_users}}" - name: Install bashrc.d files copy: "src={{item[1]}} dest=~/.bashrc.d/{{item[1]|basename}}" become: true become_user: "{{item[0]}}" with_nested: - - bash_users - - bash_scripts.stdout_lines + - "{{bash_users}}" + - "{{bash_scripts.stdout_lines}}"