Skip to content

Commit 42c388f

Browse files
committed
Force vagrant provision
Otherwise the presense of entries in /etc/hosts depends on when the machine was exactly booted
1 parent e5bc349 commit 42c388f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

development/playbooks/vms/vms.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
chdir: "{{ inventory_dir }}/../"
1515
changed_when: false
1616

17+
- name: Force vagrant provision
18+
ansible.builtin.command:
19+
cmd: "vagrant provision {{ vms | default() }}"
20+
args:
21+
chdir: "{{ inventory_dir }}/../"
22+
changed_when: false
23+
1724
- name: Create local_vagrant inventory
1825
ansible.builtin.command:
1926
cmd: ../../scripts/vagrant.py --yaml

0 commit comments

Comments
 (0)