Fix ansible 2 deprecation warnings.
This commit is contained in:
parent
adc4d19ad7
commit
faa9d0cb6f
1 changed files with 10 additions and 10 deletions
|
@ -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}}"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue