Add molecule test structure

This commit is contained in:
n07070 2024-03-01 11:01:31 +01:00
parent bf077a1cca
commit 47839fc045
6 changed files with 193 additions and 0 deletions

49
meta/main.yml Normal file
View File

@ -0,0 +1,49 @@
---
galaxy_info:
author: N07070
description: Installs and configures the Scaphandre energy consumption mesurement exporter.
role_name: scaphandre # if absent directory name hosting role is used instead
namespace: hubblo # if absent, author is used instead
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: GPL-3.0-only
min_ansible_version: "2.1"
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
platforms:
- name: Debian
versions:
- bookworm
- name: Rocky
versions:
- all
galaxy_tags:
- scaphandre
- energy
- prometheus
- exporter
- fr
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

61
meta/scaphandre.svg Normal file
View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="469pt" height="469pt" viewBox="0 0 469 469" version="1.1">
<defs>
<clipPath id="clip1">
<path d="M 110.058594 285.152344 L 359.957031 285.152344 L 359.957031 421.476562 L 110.058594 421.476562 Z M 110.058594 285.152344 "/>
</clipPath>
<clipPath id="clip2">
<path d="M 229 47 L 240.128906 47 L 240.128906 70 L 229 70 Z M 229 47 "/>
</clipPath>
</defs>
<g id="surface16045">
<g clip-path="url(#clip1)" clip-rule="nonzero">
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(82.745099%,37.64706%,13.333334%);fill-opacity:1;" d="M 129.261719 285.480469 C 164.488281 285.480469 199.742188 285.480469 234.96875 285.480469 C 270.191406 285.480469 305.445312 285.480469 340.699219 285.480469 C 351.414062 285.480469 360.425781 293.378906 359.199219 302.960938 C 357.09375 319.394531 353.089844 335.949219 346.429688 352.097656 C 339.582031 368.722656 330.003906 385.050781 318.761719 401.230469 C 310.136719 413.648438 297.941406 418.5 284.074219 420.175781 C 270.1875 421.851562 196.789062 421.8125 183.703125 419.886719 C 170.726562 417.972656 159.347656 413 151.167969 401.230469 C 139.929688 385.050781 130.351562 368.722656 123.503906 352.097656 C 116.847656 335.949219 112.839844 319.394531 110.734375 302.960938 C 109.507812 293.378906 118.542969 285.480469 129.261719 285.480469 "/>
</g>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(87.843138%,42.745098%,18.431373%);fill-opacity:1;" d="M 129.261719 290.902344 C 123.050781 290.902344 115.226562 295.207031 116.132812 302.269531 C 118.230469 318.664062 122.226562 334.738281 128.535156 350.039062 C 135.539062 367.03125 145.171875 383.066406 155.644531 398.148438 C 162.714844 408.324219 172.523438 412.753906 184.503906 414.523438 C 186.792969 414.859375 189.257812 414.980469 191.570312 415.109375 C 195.46875 415.324219 199.378906 415.457031 203.28125 415.5625 C 213.523438 415.847656 223.78125 415.945312 234.027344 415.960938 C 244.160156 415.980469 254.300781 415.910156 264.429688 415.679688 C 268.328125 415.597656 272.230469 415.484375 276.125 415.304688 C 278.527344 415.191406 281.023438 415.078125 283.417969 414.792969 C 296.152344 413.253906 306.765625 408.976562 314.292969 398.148438 C 324.761719 383.066406 334.398438 367.03125 341.398438 350.039062 C 347.703125 334.738281 351.699219 318.664062 353.800781 302.269531 C 354.707031 295.207031 346.917969 290.902344 340.699219 290.902344 C 305.457031 290.902344 270.210938 290.902344 234.96875 290.902344 C 199.730469 290.902344 164.496094 290.902344 129.261719 290.902344 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(82.745099%,37.64706%,13.333334%);fill-opacity:1;" d="M 225.113281 208.089844 C 251.15625 208.089844 274.246094 216.386719 289.636719 230.207031 C 304.636719 243.679688 312.003906 262.742188 309.171875 283.574219 C 306.34375 304.425781 294.804688 323.140625 279.417969 336.960938 C 264.402344 350.4375 245.488281 359.0625 225.101562 359.0625 C 217.089844 359.0625 209.300781 357.730469 201.886719 355.296875 C 221.925781 354.09375 239.640625 345.476562 253.273438 332.539062 C 268.359375 318.222656 278.742188 298.832031 279.480469 277.226562 C 280.222656 255.644531 270.140625 235.890625 252.445312 221.933594 C 247.832031 218.296875 242.722656 215.027344 237.207031 212.179688 C 230.132812 210.355469 222.707031 209.117188 215.054688 208.507812 C 218.355469 208.230469 221.710938 208.089844 225.113281 208.089844 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 132.808594 279.125 L 337.167969 279.125 C 338.050781 279.125 338.773438 278.40625 338.773438 277.519531 L 338.773438 266.832031 C 338.773438 265.953125 338.050781 265.234375 337.167969 265.234375 L 132.808594 265.234375 C 131.929688 265.234375 131.203125 265.953125 131.203125 266.832031 L 131.203125 277.519531 C 131.203125 278.40625 131.929688 279.125 132.808594 279.125 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 152.941406 241.675781 L 317.039062 241.675781 C 318.808594 241.675781 320.253906 243.117188 320.253906 244.882812 L 320.253906 266.261719 C 320.253906 268.019531 318.808594 269.460938 317.039062 269.460938 L 152.941406 269.460938 C 151.167969 269.460938 149.722656 268.019531 149.722656 266.261719 L 149.722656 244.882812 C 149.722656 243.117188 151.167969 241.675781 152.941406 241.675781 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(82.745099%,37.64706%,13.333334%);fill-opacity:1;" d="M 235 64.132812 C 235 64.132812 235 64.132812 235.019531 64.132812 C 259.949219 64.132812 282.621094 74.234375 298.835938 90.671875 C 338.660156 131.054688 318.742188 196.878906 311.910156 246.894531 C 311.898438 247.117188 311.871094 247.34375 311.820312 247.570312 L 311.796875 247.734375 L 311.773438 247.734375 C 309.320312 256.945312 275.882812 264.238281 234.992188 264.238281 C 192.511719 264.238281 158.066406 256.363281 158.066406 246.644531 L 158.066406 246.625 C 151.148438 196.746094 131.402344 130.929688 171.125 90.671875 C 187.347656 74.242188 210.074219 64.132812 235 64.132812 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(87.843138%,42.745098%,18.431373%);fill-opacity:1;" d="M 235 64.132812 C 235 64.132812 235 64.132812 235.019531 64.132812 C 241.554688 64.132812 247.933594 64.824219 254.085938 66.148438 C 262.351562 70.539062 269.867188 76.152344 276.371094 82.753906 C 317.582031 124.539062 296.976562 192.652344 289.90625 244.40625 C 289.890625 244.640625 289.863281 244.871094 289.808594 245.105469 L 289.789062 245.277344 L 289.765625 245.277344 C 287.21875 254.808594 252.625 262.355469 210.3125 262.355469 C 206.375 262.355469 202.503906 262.289062 198.71875 262.167969 C 174.527344 259.199219 158.066406 253.363281 158.066406 246.644531 L 158.066406 246.625 C 151.148438 196.746094 131.402344 130.929688 171.125 90.671875 C 187.347656 74.242188 210.074219 64.132812 235 64.132812 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 222.046875 77.320312 L 247.933594 77.320312 L 247.933594 61.921875 L 222.046875 61.921875 L 222.046875 77.320312 "/>
<g clip-path="url(#clip2)" clip-rule="nonzero">
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 234.988281 47.1875 C 237.8125 47.1875 240.117188 49.488281 240.117188 52.296875 L 240.117188 64.511719 C 240.117188 67.320312 237.8125 69.617188 234.988281 69.617188 C 232.167969 69.617188 229.859375 67.320312 229.859375 64.511719 L 229.859375 52.296875 C 229.859375 49.488281 232.167969 47.1875 234.988281 47.1875 "/>
</g>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 236.328125 241.675781 C 271.183594 241.675781 299.613281 213.355469 299.613281 178.628906 C 299.613281 143.90625 271.183594 115.585938 236.328125 115.585938 C 201.472656 115.585938 173.046875 143.90625 173.046875 178.628906 C 173.046875 213.355469 201.472656 241.675781 236.328125 241.675781 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 234.992188 238.472656 C 269.851562 238.472656 298.277344 210.152344 298.277344 175.425781 C 298.277344 140.703125 269.851562 112.378906 234.992188 112.378906 C 200.140625 112.378906 171.710938 140.703125 171.710938 175.425781 C 171.710938 210.152344 200.140625 238.472656 234.992188 238.472656 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(10.196079%,10.196079%,10.196079%);fill-opacity:1;" d="M 234.992188 220.175781 C 259.734375 220.175781 279.910156 200.074219 279.910156 175.425781 C 279.910156 150.785156 259.734375 130.679688 234.992188 130.679688 C 210.257812 130.679688 190.082031 150.785156 190.082031 175.425781 C 190.082031 200.074219 210.257812 220.175781 234.992188 220.175781 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(40.000001%,40.000001%,40.000001%);fill-opacity:1;" d="M 273.65625 152.640625 C 277.628906 159.3125 279.910156 167.105469 279.910156 175.425781 C 279.910156 200.140625 259.800781 220.175781 234.992188 220.175781 C 220.265625 220.175781 207.191406 213.113281 199.003906 202.199219 C 195.03125 195.523438 192.746094 187.730469 192.746094 179.410156 C 192.746094 154.695312 212.851562 134.660156 237.660156 134.660156 C 252.390625 134.660156 265.464844 141.726562 273.65625 152.640625 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(18.431373%,18.039216%,21.176471%);fill-opacity:1;" d="M 198.410156 201.171875 C 194.804688 194.734375 192.746094 187.3125 192.746094 179.410156 C 192.746094 154.695312 212.851562 134.660156 237.660156 134.660156 C 251.949219 134.660156 264.683594 141.3125 272.902344 151.671875 C 276.515625 158.117188 278.570312 165.53125 278.570312 173.4375 C 278.570312 198.148438 258.464844 218.183594 233.660156 218.183594 C 219.371094 218.183594 206.636719 211.535156 198.410156 201.171875 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 132.808594 279.125 L 337.167969 279.125 C 338.050781 279.125 338.773438 279.847656 338.773438 280.726562 L 338.773438 291.414062 C 338.773438 292.292969 338.050781 293.015625 337.167969 293.015625 L 132.808594 293.015625 C 131.929688 293.015625 131.203125 292.292969 131.203125 291.414062 L 131.203125 280.726562 C 131.203125 279.847656 131.929688 279.125 132.808594 279.125 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(83.529413%,50.980395%,16.470589%);fill-opacity:1;" d="M 185.679688 160.851562 C 189.183594 160.851562 192.035156 158.007812 192.035156 154.519531 C 192.035156 151.03125 189.183594 148.1875 185.679688 148.1875 C 182.183594 148.1875 179.324219 151.03125 179.324219 154.519531 C 179.324219 158.007812 182.183594 160.851562 185.679688 160.851562 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(83.529413%,50.980395%,16.470589%);fill-opacity:1;" d="M 285.191406 203.429688 C 288.695312 203.429688 291.546875 200.585938 291.546875 197.097656 C 291.546875 193.609375 288.695312 190.765625 285.191406 190.765625 C 281.6875 190.765625 278.835938 193.609375 278.835938 197.097656 C 278.835938 200.585938 281.6875 203.429688 285.191406 203.429688 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(83.529413%,50.980395%,16.470589%);fill-opacity:1;" d="M 219.859375 121.226562 C 222.339844 123.699219 222.339844 127.710938 219.859375 130.183594 C 217.375 132.652344 213.351562 132.652344 210.871094 130.183594 C 208.386719 127.710938 208.386719 123.699219 210.871094 121.226562 C 213.351562 118.753906 217.375 118.753906 219.859375 121.226562 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(83.529413%,50.980395%,16.470589%);fill-opacity:1;" d="M 260 221.429688 C 262.484375 223.910156 262.484375 227.914062 260 230.386719 C 257.519531 232.863281 253.496094 232.863281 251.011719 230.386719 C 248.53125 227.914062 248.53125 223.910156 251.011719 221.429688 C 253.496094 218.960938 257.519531 218.960938 260 221.429688 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(83.529413%,50.980395%,16.470589%);fill-opacity:1;" d="M 263.164062 126.238281 C 263.164062 129.738281 260.316406 132.570312 256.808594 132.570312 C 253.292969 132.570312 250.445312 129.738281 250.445312 126.238281 C 250.445312 122.746094 253.292969 119.90625 256.808594 119.90625 C 260.316406 119.90625 263.164062 122.746094 263.164062 126.238281 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(83.529413%,50.980395%,16.470589%);fill-opacity:1;" d="M 220.425781 225.378906 C 220.425781 228.875 217.578125 231.710938 214.070312 231.710938 C 210.554688 231.710938 207.714844 228.875 207.714844 225.378906 C 207.714844 221.882812 210.554688 219.042969 214.070312 219.042969 C 217.578125 219.042969 220.425781 221.882812 220.425781 225.378906 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(83.529413%,50.980395%,16.470589%);fill-opacity:1;" d="M 290.222656 160.289062 C 287.742188 162.761719 283.714844 162.761719 281.234375 160.289062 C 278.753906 157.820312 278.753906 153.808594 281.234375 151.335938 C 283.714844 148.859375 287.742188 148.859375 290.222656 151.335938 C 292.703125 153.808594 292.703125 157.820312 290.222656 160.289062 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(83.529413%,50.980395%,16.470589%);fill-opacity:1;" d="M 189.636719 200.28125 C 187.15625 202.753906 183.132812 202.753906 180.648438 200.28125 C 178.167969 197.808594 178.167969 193.800781 180.648438 191.328125 C 183.132812 188.855469 187.15625 188.855469 189.636719 191.328125 C 192.125 193.800781 192.125 197.808594 189.636719 200.28125 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 122.636719 283.574219 L 353.875 283.574219 L 353.875 274.820312 L 122.636719 274.820312 L 122.636719 283.574219 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 150.152344 132.566406 C 152.992188 132.566406 155.296875 146.375 155.296875 163.40625 C 155.296875 180.441406 152.992188 194.253906 150.152344 194.253906 L 135.945312 194.253906 L 135.945312 132.566406 L 150.152344 132.566406 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 135.945312 194.253906 C 138.78125 194.253906 141.089844 180.398438 141.089844 163.40625 C 141.089844 146.421875 138.78125 132.566406 135.945312 132.566406 C 133.113281 132.566406 130.808594 146.421875 130.808594 163.40625 C 130.808594 180.398438 133.113281 194.253906 135.945312 194.253906 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 135.945312 185.914062 C 136.972656 185.914062 137.8125 175.800781 137.8125 163.40625 C 137.8125 151.011719 136.972656 140.90625 135.945312 140.90625 C 134.921875 140.90625 134.082031 151.011719 134.082031 163.40625 C 134.082031 175.800781 134.921875 185.914062 135.945312 185.914062 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(18.431373%,18.039216%,21.176471%);fill-opacity:1;" d="M 136.878906 182.90625 C 136.324219 179.011719 135.945312 171.738281 135.945312 163.40625 C 135.945312 155.078125 136.324219 147.808594 136.878906 143.914062 C 137.4375 147.808594 137.8125 155.078125 137.8125 163.40625 C 137.8125 171.738281 137.4375 179.011719 136.878906 182.90625 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 319.828125 132.566406 C 316.984375 132.566406 314.683594 146.375 314.683594 163.40625 C 314.683594 180.441406 316.984375 194.253906 319.828125 194.253906 L 334.03125 194.253906 L 334.03125 132.566406 L 319.828125 132.566406 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 334.03125 194.253906 C 336.863281 194.253906 339.175781 180.398438 339.175781 163.40625 C 339.175781 146.421875 336.863281 132.566406 334.03125 132.566406 C 331.203125 132.566406 328.890625 146.421875 328.890625 163.40625 C 328.890625 180.398438 331.203125 194.253906 334.03125 194.253906 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 334.03125 185.914062 C 335.0625 185.914062 335.898438 175.800781 335.898438 163.40625 C 335.898438 151.011719 335.0625 140.90625 334.03125 140.90625 C 333.003906 140.90625 332.167969 151.011719 332.167969 163.40625 C 332.167969 175.800781 333.003906 185.914062 334.03125 185.914062 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(18.431373%,18.039216%,21.176471%);fill-opacity:1;" d="M 333.101562 182.90625 C 333.660156 179.011719 334.03125 171.738281 334.03125 163.40625 C 334.03125 155.078125 333.660156 147.808594 333.101562 143.914062 C 332.546875 147.808594 332.167969 155.078125 332.167969 163.40625 C 332.167969 171.738281 332.546875 179.011719 333.101562 182.90625 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(94.509804%,49.803922%,25.490198%);fill-opacity:1;" d="M 168.347656 118.28125 C 171.171875 120.363281 178.675781 115.027344 185.113281 106.371094 C 191.558594 97.714844 194.492188 89.003906 191.675781 86.925781 C 188.855469 84.84375 181.347656 90.175781 174.90625 98.832031 C 168.46875 107.492188 165.53125 116.199219 168.347656 118.28125 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(94.509804%,49.803922%,25.490198%);fill-opacity:1;" d="M 145.386719 337.917969 C 148.507812 336.320312 147.023438 327.253906 142.066406 317.675781 C 137.113281 308.09375 130.574219 301.625 127.449219 303.222656 C 124.332031 304.824219 125.820312 313.886719 130.773438 323.46875 C 135.722656 333.046875 142.269531 339.523438 145.386719 337.917969 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(40.000001%,40.000001%,40.000001%);fill-opacity:1;" d="M 202.578125 165.957031 C 204.414062 167.3125 209.296875 163.84375 213.488281 158.214844 C 217.675781 152.582031 219.585938 146.917969 217.746094 145.566406 C 215.914062 144.210938 211.035156 147.679688 206.84375 153.308594 C 202.65625 158.941406 200.746094 164.605469 202.578125 165.957031 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 184.351562 159.664062 C 187.847656 159.664062 190.707031 156.820312 190.707031 153.332031 C 190.707031 149.84375 187.847656 147.003906 184.351562 147.003906 C 180.847656 147.003906 177.996094 149.84375 177.996094 153.332031 C 177.996094 156.820312 180.847656 159.664062 184.351562 159.664062 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 283.855469 202.242188 C 287.359375 202.242188 290.214844 199.398438 290.214844 195.910156 C 290.214844 192.425781 287.359375 189.578125 283.855469 189.578125 C 280.359375 189.578125 277.5 192.425781 277.5 195.910156 C 277.5 199.398438 280.359375 202.242188 283.855469 202.242188 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 218.523438 120.042969 C 221.007812 122.515625 221.007812 126.527344 218.523438 129 C 216.042969 131.472656 212.015625 131.472656 209.535156 129 C 207.054688 126.527344 207.054688 122.515625 209.535156 120.042969 C 212.015625 117.574219 216.042969 117.574219 218.523438 120.042969 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 258.667969 220.25 C 261.15625 222.722656 261.15625 226.730469 258.667969 229.203125 C 256.1875 231.675781 252.164062 231.675781 249.679688 229.203125 C 247.195312 226.730469 247.195312 222.722656 249.679688 220.25 C 252.164062 217.777344 256.1875 217.777344 258.667969 220.25 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 261.828125 125.058594 C 261.828125 128.554688 258.980469 131.386719 255.472656 131.386719 C 251.960938 131.386719 249.117188 128.554688 249.117188 125.058594 C 249.117188 121.558594 251.960938 118.726562 255.472656 118.726562 C 258.980469 118.726562 261.828125 121.558594 261.828125 125.058594 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 219.089844 224.191406 C 219.089844 227.691406 216.25 230.523438 212.734375 230.523438 C 209.226562 230.523438 206.378906 227.691406 206.378906 224.191406 C 206.378906 220.695312 209.226562 217.859375 212.734375 217.859375 C 216.25 217.859375 219.089844 220.695312 219.089844 224.191406 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 288.890625 159.101562 C 286.40625 161.574219 282.382812 161.574219 279.898438 159.101562 C 277.417969 156.632812 277.417969 152.621094 279.898438 150.148438 C 282.382812 147.675781 286.40625 147.675781 288.890625 150.148438 C 291.371094 152.621094 291.371094 156.632812 288.890625 159.101562 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(93.725491%,59.607846%,23.137255%);fill-opacity:1;" d="M 188.308594 199.101562 C 185.820312 201.574219 181.800781 201.574219 179.320312 199.101562 C 176.835938 196.625 176.835938 192.617188 179.320312 190.140625 C 181.800781 187.667969 185.820312 187.667969 188.308594 190.140625 C 190.789062 192.617188 190.789062 196.625 188.308594 199.101562 "/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,70.19608%,25.490198%);fill-opacity:1;" d="M 232.980469 50.773438 C 234.089844 50.773438 234.988281 51.671875 234.988281 52.773438 L 234.988281 62.929688 C 234.988281 64.027344 234.089844 64.925781 232.980469 64.925781 C 231.882812 64.925781 230.976562 64.027344 230.976562 62.929688 L 230.976562 52.773438 C 230.976562 51.671875 231.875 50.773438 232.980469 50.773438 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,8 @@
---
- name: Converge
hosts: all
gather_facts: false
tasks:
- name: Include hubblo.scaphandre
ansible.builtin.include_role:
name: "hubblo.scaphandre"

View File

@ -0,0 +1,35 @@
---
- name: Create
hosts: localhost
connection: local
gather_facts: false
# no_log: "{{ molecule_no_log }}"
tasks:
# TODO: Developer must implement and populate 'server' variable
- name: Create instance config
when: server.changed | default(false) | bool # noqa no-handler
block:
- name: Populate instance config dict # noqa jinja
ansible.builtin.set_fact:
instance_conf_dict: {}
# instance': "{{ }}",
# address': "{{ }}",
# user': "{{ }}",
# port': "{{ }}",
# 'identity_file': "{{ }}", }
with_items: "{{ server.results }}"
register: instance_config_dict
- name: Convert instance config dict to a list
ansible.builtin.set_fact:
instance_conf: "{{ instance_config_dict.results | map(attribute='ansible_facts.instance_conf_dict') | list }}"
- name: Dump instance config
ansible.builtin.copy:
content: |
# Molecule managed
{{ instance_conf | to_json | from_json | to_yaml }}
dest: "{{ molecule_instance_config }}"
mode: "0600"

View File

@ -0,0 +1,24 @@
---
- name: Destroy
hosts: localhost
connection: local
gather_facts: false
# no_log: "{{ molecule_no_log }}"
tasks:
# Developer must implement.
# Mandatory configuration for Molecule to function.
- name: Populate instance config
ansible.builtin.set_fact:
instance_conf: {}
- name: Dump instance config
ansible.builtin.copy:
content: |
# Molecule managed
{{ instance_conf | to_json | from_json | to_yaml }}
dest: "{{ molecule_instance_config }}"
mode: "0600"
when: server.changed | default(false) | bool # noqa no-handler

View File

@ -0,0 +1,16 @@
---
dependency:
name: galaxy
driver:
name: vagrant
provider:
name: virtualbox
platforms:
- name: instance
box: debian/bookworm64
memory: 512
cpus: 1
provisioner:
name: ansible
verifier:
name: ansible