diff --git a/README.md b/README.md index 317bbc8..bb9a93e 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,6 @@ yunohost: firstname: John lastname: Doe domain: '{{ extra_domain.[1] }}' - admin_users: - - name: admin # user generated by yunohost as its admin user - key: ssh-rsa ... # key for admin user - - name: user1 # user generated by yunohost and defined by you - key: ssh-rsa ... # key for ``` Dependencies diff --git a/default/main.yml b/default/main.yml index 80bb4c5..70ece64 100644 --- a/default/main.yml +++ b/default/main.yml @@ -6,4 +6,4 @@ yunohost: ignore_dyndns: False apps: ~ users: ~ - admin_users: + diff --git a/tasks/admin_users.yml b/tasks/admin_users.yml deleted file mode 100644 index 2a510ba..0000000 --- a/tasks/admin_users.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: add sshkey for admin user - ansible.posix.authorized_key: - user: "{{ item.name }}" - state: present - key: "{{ item.key }}" - loop: "{{ yunohost.admin_users }}" - -- name: Disable Password Authentication for ssh.usage - ansible.builtin.replace: - path: /etc/ssh/sshd_config - regexp: PasswordAuthentication - replace: 'PasswordAuthentication no\1' - when: yunohost.nopassword == true diff --git a/tasks/main.yml b/tasks/main.yml index 2dbc71a..b01d51b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -45,10 +45,6 @@ ansible.builtin.include: users.yml when: yunohost.users -- name: Add ssh for admin user - ansible.builtin.include: admin_users.yml - when: yunohost.admin_users is defined - - name: Install apps ansible.builtin.include: apps.yml when: yunohost.apps