Move user cleanup to firstboot script
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f15485e7c2
commit
6b1db0dd23
@ -5,3 +5,8 @@
|
|||||||
generate_ssh_key: yes
|
generate_ssh_key: yes
|
||||||
ssh_key_bits: 2048
|
ssh_key_bits: 2048
|
||||||
ssh_key_file: .ssh/id_rsa
|
ssh_key_file: .ssh/id_rsa
|
||||||
|
- name: Delete 'ubuntu' user
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: ubuntu
|
||||||
|
state: absent
|
||||||
|
remove: yes
|
||||||
|
@ -15,6 +15,3 @@
|
|||||||
|
|
||||||
- name: Install ansible
|
- name: Install ansible
|
||||||
import_tasks: ansible.yml
|
import_tasks: ansible.yml
|
||||||
|
|
||||||
- name: Delete temporary users
|
|
||||||
import_tasks: users.yml
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
- name: Delete 'ubuntu' user
|
|
||||||
ansible.builtin.user:
|
|
||||||
name: ubuntu
|
|
||||||
state: absent
|
|
||||||
remove: yes
|
|
Loading…
Reference in New Issue
Block a user