Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 669d3ebb authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

Merge branch '1-remove-admin-users-feature' into 'master'

:white_check_mark:Resolve "remove admin users feature"

Closes #1

See merge request !2
parents 952ed25a 9448739c
No related branches found
No related tags found
1 merge request!2✅Resolve "remove admin users feature"
...@@ -44,11 +44,6 @@ yunohost: ...@@ -44,11 +44,6 @@ yunohost:
firstname: John firstname: John
lastname: Doe lastname: Doe
domain: '{{ extra_domain.[1] }}' 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 Dependencies
......
...@@ -6,4 +6,4 @@ yunohost: ...@@ -6,4 +6,4 @@ yunohost:
ignore_dyndns: False ignore_dyndns: False
apps: ~ apps: ~
users: ~ users: ~
admin_users:
---
- 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
...@@ -45,10 +45,6 @@ ...@@ -45,10 +45,6 @@
ansible.builtin.include: users.yml ansible.builtin.include: users.yml
when: yunohost.users when: yunohost.users
- name: Add ssh for admin user
ansible.builtin.include: admin_users.yml
when: yunohost.admin_users is defined
- name: Install apps - name: Install apps
ansible.builtin.include: apps.yml ansible.builtin.include: apps.yml
when: yunohost.apps when: yunohost.apps
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment