File tree Expand file tree Collapse file tree 8 files changed +48
-135
lines changed
centos-stream-9-enterprise Expand file tree Collapse file tree 8 files changed +48
-135
lines changed Original file line number Diff line number Diff line change 11---
2- - name : Prepare controlling host
3- hosts : localhost
4- connection : local
5-
6- tasks :
7- - name : Prepare CI environment
8- when : lookup('env', 'CI') is truthy
9- block :
10- - name : Install OS packages on controlling host
11- when : ansible_distribution != 'MacOSX'
12- ansible.builtin.package :
13- name : unzip
14- become : true
15-
16- - name : Install netaddr dependency on controlling host
17- ansible.builtin.pip :
18- name : netaddr
19- become : false
2+ - name : Common prepare
3+ ansible.builtin.import_playbook : ../prepare.yml
204
215- name : Prepare AlmaLinux
226 hosts : all
2610 path : /etc/shadow
2711 mode : ' 0640'
2812 owner : root
29- group : root
13+ group : root
Original file line number Diff line number Diff line change 11---
2- - name : Prepare controlling host
3- hosts : localhost
4- connection : local
5-
6- tasks :
7- - name : Prepare CI environment
8- when : lookup('env', 'CI') is truthy
9- block :
10- - name : Install OS packages on controlling host
11- when : ansible_distribution != 'MacOSX'
12- ansible.builtin.package :
13- name : unzip
14- become : true
15-
16- - name : Install netaddr dependency on controlling host
17- ansible.builtin.pip :
18- name : netaddr
19- become : false
2+ - name : Common prepare
3+ ansible.builtin.import_playbook : ../prepare.yml
204
215- name : Prepare ArchLinux
226 hosts : all
Original file line number Diff line number Diff line change 11---
2- - name : Prepare controlling host
3- hosts : localhost
4- connection : local
5-
6- tasks :
7- - name : Prepare CI environment
8- when : lookup('env', 'CI') is truthy
9- block :
10- - name : Install OS packages on controlling host
11- when : ansible_distribution != 'MacOSX'
12- ansible.builtin.package :
13- name : unzip
14- become : true
15-
16- - name : Install netaddr dependency on controlling host
17- ansible.builtin.pip :
18- name : netaddr
19- become : false
2+ - name : Common prepare
3+ ansible.builtin.import_playbook : ../prepare.yml
204
215- name : Prepare CentOS
226 hosts : all
2610 path : /etc/shadow
2711 mode : ' 0640'
2812 owner : root
29- group : root
13+ group : root
Original file line number Diff line number Diff line change 11---
2- - name : Prepare controlling host
3- hosts : localhost
4- connection : local
5-
6- tasks :
7- - name : Prepare CI environment
8- when : lookup('env', 'CI') is truthy
9- block :
10- - name : Install OS packages on controlling host
11- when : ansible_distribution != 'MacOSX'
12- ansible.builtin.package :
13- name : unzip
14- become : true
15-
16- - name : Install netaddr dependency on controlling host
17- ansible.builtin.pip :
18- name : netaddr
19- become : false
2+ - name : Common prepare
3+ ansible.builtin.import_playbook : ../prepare.yml
204
215- name : Prepare CentOS
226 hosts : all
2610 path : /etc/shadow
2711 mode : ' 0640'
2812 owner : root
29- group : root
13+ group : root
Original file line number Diff line number Diff line change 11---
2- - name : Prepare controlling host
3- hosts : localhost
4- connection : local
5-
6- tasks :
7- - name : Prepare CI environment
8- when : lookup('env', 'CI') is truthy
9- block :
10- - name : Install OS packages on controlling host
11- when : ansible_distribution != 'MacOSX'
12- ansible.builtin.package :
13- name : unzip
14- become : true
15-
16- - name : Install netaddr dependency on controlling host
17- ansible.builtin.pip :
18- name : netaddr
19- become : false
20-
212- name : Prepare Debian
223 hosts : all
234 gather_facts : false
245 tasks :
256 - name : Bootstrap Python
267 ansible.builtin.raw : " test -e /usr/bin/python || apt-get install --update python3 -y"
8+ changed_when : true
9+
10+ - name : Common prepare
11+ ansible.builtin.import_playbook : ../prepare.yml
Original file line number Diff line number Diff line change 11---
2- - name : Prepare controlling host
3- hosts : localhost
4- connection : local
5-
6- tasks :
7- - name : Prepare CI environment
8- when : lookup('env', 'CI') is truthy
9- block :
10- - name : Install OS packages on controlling host
11- when : ansible_distribution != 'MacOSX'
12- ansible.builtin.package :
13- name : unzip
14- become : true
15-
16- - name : Install netaddr dependency on controlling host
17- ansible.builtin.pip :
18- name : netaddr
19- become : false
20-
212- name : Prepare Debian
223 hosts : all
234 gather_facts : false
245 tasks :
256 - name : Bootstrap Python
267 ansible.builtin.raw : " test -e /usr/bin/python || apt-get install --update python3 -y"
8+ changed_when : true
9+
10+ - name : Common prepare
11+ ansible.builtin.import_playbook : ../prepare.yml
Original file line number Diff line number Diff line change 11---
2- - name : Prepare
2+ - name : Prepare host
33 hosts : localhost
44 connection : local
55
99 block :
1010 - name : Install OS packages on controlling host
1111 when : ansible_distribution != 'MacOSX'
12- package :
12+ ansible.builtin. package :
1313 name : unzip
1414 become : true
1515
1616 - name : Install netaddr dependency on controlling host
17- pip :
17+ ansible.builtin. pip :
1818 name : netaddr
1919 become : false
20+
21+ - name : Stub out vault enterprise service
22+ hosts : all
23+ tasks :
24+ - name : Prepare CI environment
25+ when :
26+ - " 'enterprise' in lookup('env', 'MOLECULE_SCENARIO_DIRECTORY')"
27+ - ansible_service_mgr == "systemd"
28+ block :
29+ - name : Make sure dropin directory exists
30+ ansible.builtin.file :
31+ path : /etc/systemd/system/vault.service.d/
32+ state : directory
33+ mode : ' 0755'
34+
35+ - name : Write dropin file
36+ ansible.builtin.copy :
37+ dest : /etc/systemd/system/vault.service.d/fake-service.conf
38+ mode : ' 0644'
39+ content : |
40+ [Service]
41+ ExecStart=
42+ ExecStart=/usr/bin/sleep 100000
Original file line number Diff line number Diff line change 11---
2- - name : Prepare controlling host
3- hosts : localhost
4- connection : local
5-
6- tasks :
7- - name : Prepare CI environment
8- when : lookup('env', 'CI') is truthy
9- block :
10- - name : Install OS packages on controlling host
11- when : ansible_distribution != 'MacOSX'
12- ansible.builtin.package :
13- name : unzip
14- become : true
15-
16- - name : Install netaddr dependency on controlling host
17- ansible.builtin.pip :
18- name : netaddr
19- become : false
2+ - name : Common prepare
3+ ansible.builtin.import_playbook : ../prepare.yml
204
215- name : Prepare Rocky
226 hosts : all
2610 path : /etc/shadow
2711 mode : ' 0640'
2812 owner : root
29- group : root
13+ group : root
You can’t perform that action at this time.
0 commit comments