diff --git a/ssh-keys/tasks/non-root-ssh-keys.yml b/ssh-keys/tasks/non-root-ssh-keys.yml index 6468806..d2fed83 100644 --- a/ssh-keys/tasks/non-root-ssh-keys.yml +++ b/ssh-keys/tasks/non-root-ssh-keys.yml @@ -1,8 +1,7 @@ --- - name: Install the ssh keys for non root users authorized_key: user={{ item.0.name }} key="{{ item.1 }}" state=present - when: - - non_root_users + when: non_root_users with_subelements: - ssh_users_list - authorized_keys