Closed ivoruetsche closed 11 months ago
Maybe some additional information. Ansible runs as "ansible" user, password login via ssh is denied, only ssh key is allowed. So the playbook looks like:
- hosts: nextcloud
become: true
remote_user: ansible
become_method: sudo
vars:
ansible_ssh_private_key_file: ~/ansible/sshkey/ansible.key
Solved: I changed the ansible sudoers user from ansible ALL=NOPASSWD: ALL to ansible ALL=(ALL) NOPASSWD:ALL
Hello @ivoruetsche, it all depends on you local configuration. You don't configure Ubuntu itself with this role. In clean VM usually just setting:
- hosts: all
become: true
vars_files:
- your_var_file.yml
would be sufficient.
Hi
We try to use the ansible-collection-nextcloud-admin on Ubuntu 22.04.3. but we got these error:
I saw, that on line 38 is 'become_user: "{{ nextcloud_websrv_user }}"', well, nextcloud_websrv_user=www-root, but this user shouldn't be in the sudo list...???
Thank a lot for your work Ivo