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
admin_users.yml 408 B
Newer Older
therojam's avatar
therojam committed
- 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