diff --git a/ssh-keys/tasks/non-root-ssh-keys.yml b/ssh-keys/tasks/non-root-ssh-keys.yml index 64688062..d2fed83e 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