File tree Expand file tree Collapse file tree
templates/etc/collectd/collectd.conf.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ jobs:
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Check out the codebase
18- uses : actions/checkout@v3
18+ uses : actions/checkout@v5
1919
2020 - name : Set up Python 3
21- uses : actions/setup-python@v4
21+ uses : actions/setup-python@v6
2222 with :
23- python-version : ' 3.x '
23+ python-version : ' 3 - 3.13 '
2424
2525 - name : Install test dependencies
2626 run : |
@@ -44,28 +44,29 @@ jobs:
4444 fail-fast : false
4545 matrix :
4646 include :
47- - distro : debian10
4847 - distro : debian11
4948 - distro : debian12
50- - distro : ubuntu1604
51- ansible-version : ' >=2.10, <2.11'
52- - distro : ubuntu1604
5349 - distro : ubuntu1804
50+ ansible-version : ' >=9, <10'
5451 - distro : ubuntu2004
52+ ansible-version : ' >=12, <13'
53+ - distro : ubuntu2204
54+ - distro : ubuntu2404
5555
5656 steps :
5757 - name : Check out the codebase
58- uses : actions/checkout@v3
58+ uses : actions/checkout@v5
5959 with :
6060 path : " ${{ github.repository }}"
6161
6262 - name : Set up Python 3
63- uses : actions/setup-python@v4
63+ uses : actions/setup-python@v6
6464 with :
65- python-version : ' 3.x '
65+ python-version : ' 3 - 3.13 '
6666
6767 - name : Install test dependencies
68- run : pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
68+ run : |
69+ pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
6970
7071 - name : Run Molecule tests
7172 run : |
Original file line number Diff line number Diff line change 1212 runs-on : ubuntu-latest
1313 steps :
1414 - name : Check out the codebase
15- uses : actions/checkout@v3
15+ uses : actions/checkout@v5
1616
1717 - name : Publish to Galaxy
1818 uses : robertdebock/galaxy-action@1.2.0
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ RUN rm -rf $HOME/.cache
1414# ansible
1515RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-apt && \
1616 apt-get clean
17- RUN pip3 install ansible==2 .10.7
17+ RUN pip3 install ansible==4 .10.0
1818RUN rm -rf $HOME/.cache
1919
2020# provision
Original file line number Diff line number Diff line change 44role = File . basename ( File . expand_path ( File . dirname ( __FILE__ ) ) )
55
66boxes = [
7- {
8- :name => "ubuntu-1604" ,
9- :box => "bento/ubuntu-16.04" ,
10- :ip => '10.0.0.12' ,
11- :cpu => "50" ,
12- :ram => "256"
13- } ,
147 {
158 :name => "ubuntu-1804" ,
169 :box => "bento/ubuntu-18.04" ,
@@ -23,14 +16,21 @@ boxes = [
2316 :box => "bento/ubuntu-20.04" ,
2417 :ip => '10.0.0.14' ,
2518 :cpu => "50" ,
26- :ram => "384 "
19+ :ram => "512 "
2720 } ,
2821 {
29- :name => "debian-10 " ,
30- :box => "bento/debian-10 " ,
31- :ip => '10.0.0.18 ' ,
22+ :name => "ubuntu-2204 " ,
23+ :box => "bento/ubuntu-22.04 " ,
24+ :ip => '10.0.0.15 ' ,
3225 :cpu => "50" ,
33- :ram => "256"
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"
3434 } ,
3535 {
3636 :name => "debian-11" ,
@@ -44,7 +44,7 @@ boxes = [
4444 :box => "bento/debian-12" ,
4545 :ip => '10.0.0.20' ,
4646 :cpu => "50" ,
47- :ram => "256 "
47+ :ram => "384 "
4848 } ,
4949]
5050
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ galaxy_info:
1010 platforms :
1111 - name : Ubuntu
1212 versions :
13- - xenial
1413 - bionic
1514 - focal
15+ - jammy
16+ - noble
1617 - name : Debian
1718 versions :
18- - buster
1919 - bullseye
2020 - bookworm
2121 galaxy_tags :
Original file line number Diff line number Diff line change 11---
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 55 name : docker
66platforms :
77 - name : instance
8- image : " geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1604 }-ansible:latest"
8+ image : " geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004 }-ansible:latest"
99 command : ${MOLECULE_DOCKER_COMMAND:-""}
1010 volumes :
1111 - /sys/fs/cgroup:/sys/fs/cgroup:rw
Original file line number Diff line number Diff line change 1313 state : directory
1414 recurse : true
1515 when :
16- - ansible_distribution == 'Ubuntu'
17- - ansible_distribution_major_version is version('18', '>=')
16+ - ansible_facts['distribution'] == 'Ubuntu'
17+ - ansible_facts['distribution_major_version'] is version('18', '>=')
1818
1919 - name : install dependencies
2020 ansible.builtin.apt :
4141 dest : " {{ collectd_etc_default_file }}"
4242 owner : root
4343 group : root
44- mode : 0644
44+ mode : ' 0644'
4545 when :
46- - ansible_distribution == 'Ubuntu'
47- - ansible_distribution_major_version is version('20', '==')
46+ - ansible_facts['distribution'] == 'Ubuntu'
47+ - ansible_facts['distribution_major_version'] is version('20', '==')
4848 notify : restart collectd
4949 tags :
5050 - configuration
5555 ansible.builtin.template :
5656 src : " etc/collectd/collectd.conf.d/{{ item }}.conf.j2"
5757 dest : " /etc/collectd/collectd.conf.d/{{ item }}.conf"
58- mode : 0644
58+ mode : ' 0644'
5959 with_items : " {{ collectd_plugins_present }}"
6060 notify : restart collectd
6161 tags :
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ LoadPlugin df
1919 FSType mqueue
2020 IgnoreSelected true
2121 ReportByDevice false
22- {% if ansible_distribution == 'Ubuntu' and ansible_distribution_major_version is version ('18' , '<' ) %}
22+ {% if ansible_facts [ 'distribution' ] == 'Ubuntu' and ansible_facts [ 'distribution_major_version' ] is version ('18' , '<' ) %}
2323 ReportReserved true
2424{% endif %}
2525 ValuesAbsolute true
Original file line number Diff line number Diff line change 11# test file
22---
3- - hosts : localhost
3+ - name : converge
4+ hosts : localhost
45 connection : local
56 become : true
67 roles :
You can’t perform that action at this time.
0 commit comments