From faa9d0cb6fed1e530b88957c804ab747b30a994e Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Wed, 13 Apr 2016 00:05:04 +0200 Subject: [PATCH] Fix ansible 2 deprecation warnings. --- tasks/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 60ad520..d1873f6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,32 +22,32 @@ # TODO: for each ssh-ident user, add links & bashrc thing - name: Install for users - file: - path=~{{item}}/bin + file: > + path="~{{item}}/bin" state=directory - with_items: sshident_users + with_items: "{{sshident_users}}" - file: src=/usr/local/bin/ssh-ident - dest=~{{item}}/bin/ssh + dest="~{{item}}/bin/ssh" state=link - with_items: sshident_users + with_items: "{{sshident_users}}" -- lineinfile: - dest=~{{item}}/.bashrc +- lineinfile: > + dest="~{{item}}/.bashrc" regexp=^alias.scp= line='alias scp="BINARY_SSH=scp /usr/local/bin/ssh-ident"' become: true become_user: "{{item}}" - with_items: sshident_users + with_items: "{{sshident_users}}" - lineinfile: - dest=~{{item}}/.bashrc + dest="~{{item}}/.bashrc" regexp=^alias.rsync= line='alias scp="BINARY_SSH=rsync /usr/local/bin/ssh-ident"' become: true become_user: "{{item}}" - with_items: sshident_users + with_items: "{{sshident_users}}"