Allow default-user login
This commit is contained in:
parent
6482f3864f
commit
4197acd2ce
3 changed files with 7 additions and 0 deletions
|
@ -2,5 +2,9 @@
|
||||||
all:
|
all:
|
||||||
vars:
|
vars:
|
||||||
domain: "{{ ansible_domain }}"
|
domain: "{{ ansible_domain }}"
|
||||||
|
security_defaultuser_login_disable: false
|
||||||
|
kde_desktop_pkg:
|
||||||
|
- akonadi-backend-sqlite
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
localhost:
|
localhost:
|
||||||
|
|
2
roles/lmn_security/defaults/main.yml
Normal file
2
roles/lmn_security/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
security_defaultuser_login_disable: true
|
|
@ -18,6 +18,7 @@
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: ansible
|
name: ansible
|
||||||
password_lock: true
|
password_lock: true
|
||||||
|
when: security_defaultuser_login_disable
|
||||||
|
|
||||||
- name: Limit SSH access to user ansible
|
- name: Limit SSH access to user ansible
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
|
|
Loading…
Add table
Reference in a new issue