Skip to content
Snippets Groups Projects
Commit f991a45d authored by jurgenhaas's avatar jurgenhaas
Browse files

Remove deprecation warnings from Ansible 2.0.1.0

parent c924d29c
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,8 @@
password='{{ initial_password }}'
update_password='on_create'
with_flattened:
- admins
- jailusers
- '{{ admins }}'
- '{{ jailusers }}'
- name: "Copy SSH Config For Server-To-Server Communication For Admins"
template:
......@@ -31,16 +31,16 @@
group='root'
mode='644'
with_flattened:
- admins
- jailusers
- '{{ admins }}'
- '{{ jailusers }}'
- include: distribute_tunnel_keys.yml
when: distribute_keys
- include: distribute_keys.yml
with_flattened:
- admins
- jailusers
- '{{ admins }}'
- '{{ jailusers }}'
when: distribute_keys
#TODO: Make sure that the user already exists
......@@ -48,4 +48,4 @@
authorized_key:
user='{{ item.username }}'
key="{{ lookup('file', inventory_dir + '/files/keys/' + item.keyname + '.d2s.pub') }}"
with_items: auth_keys
with_items: '{{ auth_keys }}'
......@@ -11,5 +11,5 @@
key="{{ pubkey.stdout }} {{ inventory_hostname }}"
path='/home/{{ tunnel_user_name }}/.ssh/fresh_auth_keys_tunnel_{{ inventory_hostname }}'
delegate_to: '{{ item }}'
with_items: groups.all
with_items: '{{ groups.all }}'
when: item != "localhost" and inventory_hostname != "localhost"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment