diff --git a/contribute/_skeleton_role_/defaults/main.yml.j2 b/contribute/_skeleton_role_/defaults/main.yml.j2 index d65e2ac99..0a6037db1 100644 --- a/contribute/_skeleton_role_/defaults/main.yml.j2 +++ b/contribute/_skeleton_role_/defaults/main.yml.j2 @@ -1,5 +1,5 @@ --- -# Copyright 2023 Red Hat, Inc. +# Copyright 2024 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may diff --git a/contribute/_skeleton_role_/handlers/main.yml b/contribute/_skeleton_role_/handlers/main.yml index 7d85ac32e..4bb25dec6 100644 --- a/contribute/_skeleton_role_/handlers/main.yml +++ b/contribute/_skeleton_role_/handlers/main.yml @@ -1,5 +1,5 @@ --- -# Copyright 2023 Red Hat, Inc. +# Copyright 2024 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may diff --git a/contribute/_skeleton_role_/meta/main.yml.j2 b/contribute/_skeleton_role_/meta/main.yml.j2 index 642ff429d..88e30576f 100644 --- a/contribute/_skeleton_role_/meta/main.yml.j2 +++ b/contribute/_skeleton_role_/meta/main.yml.j2 @@ -1,5 +1,5 @@ --- -# Copyright 2023 Red Hat, Inc. +# Copyright 2024 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may @@ -21,7 +21,7 @@ galaxy_info: company: Red Hat license: Apache-2.0 min_ansible_version: '2.14' - namespace: openstack + namespace: osp # # 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'. diff --git a/contribute/_skeleton_role_/molecule/default/collections.yml b/contribute/_skeleton_role_/molecule/default/collections.yml new file mode 100644 index 000000000..424ad60b8 --- /dev/null +++ b/contribute/_skeleton_role_/molecule/default/collections.yml @@ -0,0 +1,3 @@ +--- +collections: +- name: community.general diff --git a/contribute/_skeleton_role_/molecule/default/converge.yml.j2 b/contribute/_skeleton_role_/molecule/default/converge.yml.j2 index 1c191dab5..84d978be7 100644 --- a/contribute/_skeleton_role_/molecule/default/converge.yml.j2 +++ b/contribute/_skeleton_role_/molecule/default/converge.yml.j2 @@ -1,5 +1,5 @@ --- -# Copyright 2023 Red Hat, Inc. +# Copyright 2024 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may diff --git a/contribute/_skeleton_role_/molecule/default/molecule.yml b/contribute/_skeleton_role_/molecule/default/molecule.yml index 20d7e2005..9b9dc5722 100644 --- a/contribute/_skeleton_role_/molecule/default/molecule.yml +++ b/contribute/_skeleton_role_/molecule/default/molecule.yml @@ -1,28 +1,30 @@ --- +dependency: + name: galaxy + options: + role-file: collections.yml driver: name: podman - +platforms: +- command: /sbin/init + dockerfile: ../../../../molecule/common/Containerfile.j2 + image: ${EDPM_ANSIBLE_MOLECULE_IMAGE:-"ubi9/ubi-init"} + name: instance + privileged: true + registry: + url: ${EDPM_ANSIBLE_MOLECULE_REGISTRY:-"registry.access.redhat.com"} + ulimits: + - host provisioner: - inventory: - hosts: - all: - hosts: - centos: - ansible_python_interpreter: /usr/bin/python3 - name: ansible log: true - env: - ANSIBLE_STDOUT_CALLBACK: yaml - + name: ansible scenario: test_sequence: - - destroy - - create - - prepare - - converge - - check - - verify - - destroy - + - dependency + - destroy + - create + - prepare + - converge + - destroy verifier: - name: testinfra + name: ansible diff --git a/contribute/_skeleton_role_/molecule/default/prepare.yml b/contribute/_skeleton_role_/molecule/default/prepare.yml index 0efcc33f6..0605adf7e 100644 --- a/contribute/_skeleton_role_/molecule/default/prepare.yml +++ b/contribute/_skeleton_role_/molecule/default/prepare.yml @@ -1,5 +1,5 @@ --- -# Copyright 2023 Red Hat, Inc. +# Copyright 2024 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may diff --git a/contribute/_skeleton_role_/tasks/main.yml.j2 b/contribute/_skeleton_role_/tasks/main.yml.j2 index 8cf7e449c..4bb25dec6 100644 --- a/contribute/_skeleton_role_/tasks/main.yml.j2 +++ b/contribute/_skeleton_role_/tasks/main.yml.j2 @@ -1,5 +1,5 @@ --- -# Copyright 2023 Red Hat, Inc. +# Copyright 2024 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may @@ -13,22 +13,3 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - - -# "{{ role_name }}" will search for and load any operating system variable file -{% raw %} -# found within the "vars/" path. If no OS files are found the task will skip. -- name: Gather variables for each operating system - include_vars: "{{ item }}" - with_first_found: - - skip: true - files: - - "{{ ansible_facts['distribution'] | lower }}-{{ ansible_facts['distribution_version'] | lower }}.yml" - - "{{ ansible_facts['distribution'] | lower }}-{{ ansible_facts['distribution_major_version'] | lower }}.yml" - - "{{ ansible_facts['os_family'] | lower }}-{{ ansible_facts['distribution_major_version'] | lower }}.yml" - - "{{ ansible_facts['distribution'] | lower }}.yml" - - "{{ ansible_facts['os_family'] | lower }}-{{ ansible_facts['distribution_version'].split('.')[0] }}.yml" - - "{{ ansible_facts['os_family'] | lower }}.yml" - tags: - - always -{% endraw %} diff --git a/contribute/_skeleton_role_/vars/main.yml.j2 b/contribute/_skeleton_role_/vars/main.yml.j2 index a8d9143f5..10b6d3802 100644 --- a/contribute/_skeleton_role_/vars/main.yml.j2 +++ b/contribute/_skeleton_role_/vars/main.yml.j2 @@ -1,5 +1,5 @@ --- -# Copyright 2023 Red Hat, Inc. +# Copyright 2024 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may