File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 58
58
path : ansible_collections/devsec/hardening
59
59
submodules : true
60
60
61
+ - name : Update Vagrant Box
62
+ run : |
63
+ vagrant box update --box ${{ matrix.molecule_distro }} || true
64
+
61
65
- name : Test with molecule
62
66
run : |
63
67
molecule --version
Original file line number Diff line number Diff line change 47
47
path : ansible_collections/devsec/hardening
48
48
submodules : true
49
49
50
+ - name : Update Vagrant Box
51
+ run : |
52
+ vagrant box update --box generic/${{ matrix.molecule_distro }} || true
53
+
50
54
- name : Test with molecule
51
55
run : |
52
56
molecule --version
Original file line number Diff line number Diff line change 28
28
selection : hold
29
29
when : ansible_os_family == 'Debian'
30
30
31
+ # we need to free up space, since the /boot partition in some Vagrant images is
32
+ # pretty small and system updates might fail
33
+ - name : Find all initrd.img to delete them
34
+ ansible.builtin.find :
35
+ paths : /boot
36
+ patterns : " initrd.img*"
37
+ register : find_results
38
+ when : ansible_os_family == 'Debian'
39
+
40
+ - name : Delete all initrd.img to free space on /boot
41
+ ansible.builtin.file :
42
+ path : " {{ item['path'] }}"
43
+ state : absent
44
+ with_items : " {{ find_results['files'] }}"
45
+ when : ansible_os_family == 'Debian'
46
+
31
47
- name : Run the equivalent of "apt-get update && apt-get upgrade"
32
48
ansible.builtin.apt :
33
49
upgrade : safe
You can’t perform that action at this time.
0 commit comments