fix: linting
All checks were successful
test / Linting (push) Successful in 15s
test / Molecule tests (default, debian11) (push) Successful in 26s
test / Molecule tests (default, debian12) (push) Successful in 28s
test / Molecule tests (default, ubuntu2004) (push) Successful in 27s
test / Molecule tests (default, ubuntu2204) (push) Successful in 28s
test / Molecule tests (with_ssh_keys, debian11) (push) Successful in 30s
test / Molecule tests (with_ssh_keys, debian12) (push) Successful in 30s
test / Molecule tests (with_ssh_keys, ubuntu2004) (push) Successful in 30s
test / Molecule tests (with_ssh_keys, ubuntu2204) (push) Successful in 30s
All checks were successful
test / Linting (push) Successful in 15s
test / Molecule tests (default, debian11) (push) Successful in 26s
test / Molecule tests (default, debian12) (push) Successful in 28s
test / Molecule tests (default, ubuntu2004) (push) Successful in 27s
test / Molecule tests (default, ubuntu2204) (push) Successful in 28s
test / Molecule tests (with_ssh_keys, debian11) (push) Successful in 30s
test / Molecule tests (with_ssh_keys, debian12) (push) Successful in 30s
test / Molecule tests (with_ssh_keys, ubuntu2004) (push) Successful in 30s
test / Molecule tests (with_ssh_keys, ubuntu2204) (push) Successful in 30s
This commit is contained in:
parent
9038f8a2ba
commit
974344d9c4
@ -7,4 +7,3 @@
|
|||||||
comment: "{{ provision_management_user_name }}@{{ ansible_hostname }}"
|
comment: "{{ provision_management_user_name }}@{{ ansible_hostname }}"
|
||||||
key_options: "{{ provision_management_user_ssh_key_options }}"
|
key_options: "{{ provision_management_user_ssh_key_options }}"
|
||||||
exclusive: "{{ provision_management_user_ssh_key_exclusive }}"
|
exclusive: "{{ provision_management_user_ssh_key_exclusive }}"
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
- systemctl-restart-sshd
|
- systemctl-restart-sshd
|
||||||
when: provision_management_user_disable_root_password_auth
|
when: provision_management_user_disable_root_password_auth
|
||||||
|
|
||||||
|
|
||||||
- name: "Lock root authentication"
|
- name: "Lock root authentication"
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
dest: /etc/ssh/sshd_config
|
dest: /etc/ssh/sshd_config
|
||||||
@ -22,4 +21,3 @@
|
|||||||
notify:
|
notify:
|
||||||
- systemctl-restart-sshd
|
- systemctl-restart-sshd
|
||||||
when: provision_management_user_disable_root_login
|
when: provision_management_user_disable_root_login
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
state: present
|
state: present
|
||||||
system: "{{ provision_management_user_is_system }}"
|
system: "{{ provision_management_user_is_system }}"
|
||||||
|
|
||||||
|
|
||||||
- name: "Create user {{ provision_management_user_name }}"
|
- name: "Create user {{ provision_management_user_name }}"
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: "{{ provision_management_user_name }}"
|
name: "{{ provision_management_user_name }}"
|
||||||
@ -18,7 +17,6 @@
|
|||||||
system: "{{ provision_management_user_is_system }}"
|
system: "{{ provision_management_user_is_system }}"
|
||||||
create_home: true
|
create_home: true
|
||||||
|
|
||||||
|
|
||||||
- name: "Add user to sudoers"
|
- name: "Add user to sudoers"
|
||||||
community.general.sudoers:
|
community.general.sudoers:
|
||||||
name: "{{ provision_management_user_name }}"
|
name: "{{ provision_management_user_name }}"
|
||||||
@ -27,4 +25,3 @@
|
|||||||
nopassword: true
|
nopassword: true
|
||||||
setenv: true
|
setenv: true
|
||||||
when: provision_management_user_sudoer
|
when: provision_management_user_sudoer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user