Move user cleanup to firstboot script
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2021-06-10 17:08:07 +02:00
parent f15485e7c2
commit 6b1db0dd23
3 changed files with 5 additions and 8 deletions

View File

@ -5,3 +5,8 @@
generate_ssh_key: yes
ssh_key_bits: 2048
ssh_key_file: .ssh/id_rsa
- name: Delete 'ubuntu' user
ansible.builtin.user:
name: ubuntu
state: absent
remove: yes

View File

@ -15,6 +15,3 @@
- name: Install ansible
import_tasks: ansible.yml
- name: Delete temporary users
import_tasks: users.yml

View File

@ -1,5 +0,0 @@
- name: Delete 'ubuntu' user
ansible.builtin.user:
name: ubuntu
state: absent
remove: yes