[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:
Игорь Чудов 2019-06-24 16:03:41 +04:00
parent 101b41e462
commit b3f53c4c5e
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -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: