Fix ansible 2 deprecation warnings.

This commit is contained in:
Glenn Y. Rolland 2016-04-13 00:05:04 +02:00
parent adc4d19ad7
commit faa9d0cb6f

View file

@ -22,32 +22,32 @@
# TODO: for each ssh-ident user, add links & bashrc thing # TODO: for each ssh-ident user, add links & bashrc thing
- name: Install for users - name: Install for users
file: file: >
path=~{{item}}/bin path="~{{item}}/bin"
state=directory state=directory
with_items: sshident_users with_items: "{{sshident_users}}"
- file: - file:
src=/usr/local/bin/ssh-ident src=/usr/local/bin/ssh-ident
dest=~{{item}}/bin/ssh dest="~{{item}}/bin/ssh"
state=link state=link
with_items: sshident_users with_items: "{{sshident_users}}"
- lineinfile: - lineinfile: >
dest=~{{item}}/.bashrc dest="~{{item}}/.bashrc"
regexp=^alias.scp= regexp=^alias.scp=
line='alias scp="BINARY_SSH=scp /usr/local/bin/ssh-ident"' line='alias scp="BINARY_SSH=scp /usr/local/bin/ssh-ident"'
become: true become: true
become_user: "{{item}}" become_user: "{{item}}"
with_items: sshident_users with_items: "{{sshident_users}}"
- lineinfile: - lineinfile:
dest=~{{item}}/.bashrc dest="~{{item}}/.bashrc"
regexp=^alias.rsync= regexp=^alias.rsync=
line='alias scp="BINARY_SSH=rsync /usr/local/bin/ssh-ident"' line='alias scp="BINARY_SSH=rsync /usr/local/bin/ssh-ident"'
become: true become: true
become_user: "{{item}}" become_user: "{{item}}"
with_items: sshident_users with_items: "{{sshident_users}}"