forked from saratov/infra
[ODDJOB-18] Disable 'vagrant' user
We have boxes built for both Vagrant and testing purposes. We don't need 'vagrant' user when performing tests so this step deletes this user completely from the VM.
This commit is contained in:
parent
101b41e462
commit
b3f53c4c5e
@ -8,6 +8,15 @@
|
|||||||
delay: 3
|
delay: 3
|
||||||
timeout: 60
|
timeout: 60
|
||||||
|
|
||||||
|
# Disable 'vagrant' user if exists. This operation is needed for boxes
|
||||||
|
# designed to be used by Vagrant. We don't need 'vagrant' user because
|
||||||
|
# there is a user named 'test' for our needs.
|
||||||
|
- name: Disable vagrant user
|
||||||
|
user:
|
||||||
|
name: vagrant
|
||||||
|
state: absent
|
||||||
|
remove: yes
|
||||||
|
|
||||||
- name: disable apt-cache in tmpfs
|
- name: disable apt-cache in tmpfs
|
||||||
block:
|
block:
|
||||||
- lineinfile:
|
- lineinfile:
|
||||||
|
Loading…
Reference in New Issue
Block a user