File tree 13 files changed +42
-37
lines changed
13 files changed +42
-37
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,11 @@ jobs:
44
44
fail-fast : false
45
45
matrix :
46
46
include :
47
- - distro : debian8
48
- - distro : debian9
49
- - distro : debian10
50
- - distro : ubuntu1604
51
- ansible-version : ' >=2.10, <2.11'
52
- - distro : ubuntu1604
53
47
- distro : ubuntu1804
48
+ ansible-version : ' >=9, <10'
54
49
- distro : ubuntu2004
50
+ - distro : ubuntu2204
51
+ - distro : ubuntu2404
55
52
56
53
steps :
57
54
- name : Check out the codebase
65
62
python-version : ' 3.x'
66
63
67
64
- name : Install test dependencies
68
- run : pip install 'ansible${{ matrix.ansible-version }}' molecule[docker] docker
69
-
65
+ run : |
66
+ pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
70
67
- name : Run Molecule tests
71
68
run : |
72
69
molecule test
Original file line number Diff line number Diff line change 4
4
role = File . basename ( File . expand_path ( File . dirname ( __FILE__ ) ) )
5
5
6
6
boxes = [
7
- {
8
- :name => "ubuntu-1604" ,
9
- :box => "bento/ubuntu-16.04" ,
10
- :ip => '10.0.0.12' ,
11
- :cpu => "50" ,
12
- :ram => "256"
13
- } ,
14
7
{
15
8
:name => "ubuntu-1804" ,
16
9
:box => "bento/ubuntu-18.04" ,
@@ -23,7 +16,21 @@ boxes = [
23
16
:box => "bento/ubuntu-20.04" ,
24
17
:ip => '10.0.0.14' ,
25
18
:cpu => "50" ,
26
- :ram => "384"
19
+ :ram => "512"
20
+ } ,
21
+ {
22
+ :name => "ubuntu-2204" ,
23
+ :box => "bento/ubuntu-22.04" ,
24
+ :ip => '10.0.0.15' ,
25
+ :cpu => "50" ,
26
+ :ram => "512"
27
+ } ,
28
+ {
29
+ :name => "ubuntu-2404" ,
30
+ :box => "bento/ubuntu-24.04" ,
31
+ :ip => '10.0.0.16' ,
32
+ :cpu => "50" ,
33
+ :ram => "512"
27
34
} ,
28
35
]
29
36
Original file line number Diff line number Diff line change 4
4
ansible.builtin.service :
5
5
name : autossh-tunnel-client
6
6
state : restarted
7
+ use : " {{ service_use_service_mgr | default(omit) }}"
7
8
when : service_default_state | default('started') == 'started'
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ galaxy_info:
10
10
platforms :
11
11
- name : Ubuntu
12
12
versions :
13
- - xenial
14
13
- bionic
15
14
- focal
15
+ - jammy
16
+ - noble
16
17
galaxy_tags :
17
18
- system
18
19
- networking
Original file line number Diff line number Diff line change 1
1
---
2
- collections :
3
- - name : community.docker
4
- version : ' >=1.2.0,<2'
5
- - name : community.general
6
- version : ' >=2,<3'
2
+ collections : []
Original file line number Diff line number Diff line change 5
5
name : docker
6
6
platforms :
7
7
- name : instance
8
- image : " geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1604 }-ansible:latest"
8
+ image : " geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004 }-ansible:latest"
9
9
command : ${MOLECULE_DOCKER_COMMAND:-""}
10
10
volumes :
11
11
- /sys/fs/cgroup:/sys/fs/cgroup:rw
Original file line number Diff line number Diff line change 27
27
- autossh-tunnel-client-configure
28
28
29
29
- name : service
30
- block :
31
- - name : service-initd
32
- ansible.builtin.import_tasks : service-initd.yml
33
30
when : is_docker_guest
34
31
tags :
35
32
- configuration
36
33
- autossh-tunnel-client
37
34
- autossh-tunnel-client-service
38
35
- autossh-tunnel-client-service-initd
36
+ block :
37
+ - name : service-initd
38
+ ansible.builtin.import_tasks : service-initd.yml
39
39
40
40
- name : service
41
+ when : not is_docker_guest
42
+ tags :
43
+ - configuration
44
+ - autossh-tunnel-client
45
+ - autossh-tunnel-client-service
41
46
block :
42
47
- name : service upstart
43
48
ansible.builtin.import_tasks : service-upstart.yml
50
55
when : ansible_service_mgr == 'systemd'
51
56
tags :
52
57
- autossh-tunnel-client-service-systemd
53
- when : not is_docker_guest
54
- tags :
55
- - configuration
56
- - autossh-tunnel-client
57
- - autossh-tunnel-client-service
58
58
59
59
- name : start and enable service
60
60
ansible.builtin.service :
61
61
name : autossh-tunnel-client
62
62
state : " {{ service_default_state | default('started') }}"
63
63
enabled : " {{ service_default_enabled | default(true) | bool }}"
64
+ use : " {{ service_use_service_mgr | default(omit) }}"
64
65
tags :
65
66
- configuration
66
67
- autossh-tunnel-client
Original file line number Diff line number Diff line change 6
6
dest : " {{ autossh_tunnel_client_etc_init_d_file }}"
7
7
owner : root
8
8
group : root
9
- mode : 0755
9
+ mode : ' 0755'
10
10
notify : restart autossh-tunnel-client
11
11
tags :
12
12
- autossh-tunnel-client-service-initd-update
Original file line number Diff line number Diff line change 6
6
dest : " {{ autossh_tunnel_client_etc_systemd_file }}"
7
7
owner : root
8
8
group : root
9
- mode : 0644
9
+ mode : ' 0644'
10
10
register : _update_systemd_script
11
11
notify : restart autossh-tunnel-client
12
12
tags :
Original file line number Diff line number Diff line change 6
6
dest : " {{ autossh_tunnel_client_etc_init_file }}"
7
7
owner : root
8
8
group : root
9
- mode : 0644
9
+ mode : ' 0644'
10
10
notify : restart autossh-tunnel-client
11
11
tags :
12
12
- autossh-tunnel-client-service-upstart-update
Original file line number Diff line number Diff line change 14
14
state : directory
15
15
owner : root
16
16
group : root
17
- mode : 0700
17
+ mode : ' 0700'
18
18
19
19
- name : generate key pair
20
20
ansible.builtin.command : >
Original file line number Diff line number Diff line change 1
1
# test file
2
2
---
3
- - hosts : localhost
3
+ - name : converge
4
+ hosts : localhost
4
5
connection : local
5
6
become : true
6
7
pre_tasks :
Original file line number Diff line number Diff line change 1
1
# test file
2
2
---
3
- - hosts : all
3
+ - name : converge
4
+ hosts : all
4
5
remote_user : vagrant
5
6
become : true
6
7
pre_tasks :
You can’t perform that action at this time.
0 commit comments