I am running this command:
ansible-playbook server.yml -e env=production
Attempting to provision the remote server fails on the following thing:
Fail if root login will be disabled but admin_user cannot connect
Here is a photo of the error log leading up to this:
And here is my users.yml
Documentation: https://roots.io/trellis/docs/ssh-keys/
admin_user: good_admin
# Also define 'vault_users' (`group_vars/staging/vault.yml`, `group_vars/production/vault.yml`)
users:
- name: "{{ web_user }}"
groups:
- "{{ web_group }}"
keys:
- "{{ lookup('file', '../../example_rsa.pub') }}"
# - https://github.com/username.keys
- name: "{{ admin_user }}"
groups:
- sudo
keys:
- "{{ lookup('file', '../../example_rsa.pub') }}"
# - https://github.com/username.keys
web_user: web
web_group: www-data
web_sudoers:
- "/usr/sbin/service php7.1-fpm *"
I’ve tried changing the admin_user name to root, to admin_user to good_admin
First time trying to deploy. Using a freshly deployed ubuntu droplet on DigitalOcean.
Also security.yml has the following line:
sshd_permit_root_login: true
Shouldn’t that stop this deployment check from even happening?
Why is it convinced that disabling root login will break it?