diff --git a/.yamllint.yml b/.yamllint.yml index 819ae4be0..fc1f385bc 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -24,3 +24,4 @@ rules: ignore: | changelogs/.plugin-cache.yaml + changelogs/changelog.yaml diff --git a/molecule-requirements.yml b/molecule-requirements.yml new file mode 100644 index 000000000..74b3efec2 --- /dev/null +++ b/molecule-requirements.yml @@ -0,0 +1,6 @@ +--- +collections: + - name: https://github.com/ansible-collections/ansible.posix.git + type: git + - name: https://github.com/ansible-collections/community.docker.git + type: git diff --git a/roles/node_exporter/molecule/alternative/prepare.yml b/roles/node_exporter/molecule/alternative/prepare.yml index b56b97c1d..900c61a18 100644 --- a/roles/node_exporter/molecule/alternative/prepare.yml +++ b/roles/node_exporter/molecule/alternative/prepare.yml @@ -54,3 +54,17 @@ csr_path: "/tmp/tls.csr" privatekey_path: "/tmp/tls.key" provider: selfsigned + + - name: Create test mount directory + ansible.builtin.file: + path: /home/test + state: directory + owner: root + group: root + mode: 0755 + + - name: Mount test filesystem + ansible.posix.mount: + path: /home/test + src: tmpfs + fstype: tmpfs diff --git a/tests/integration/molecule.sh b/tests/integration/molecule.sh index 9fa32f77e..cb5262753 100755 --- a/tests/integration/molecule.sh +++ b/tests/integration/molecule.sh @@ -23,12 +23,12 @@ fi # Install ansible version specific requirements if [ "$(printf '%s\n' "2.12" "$ansible_version" | sort -V | head -n1)" = "2.12" ]; then python -m pip install molecule molecule-plugins[docker] - ansible-galaxy collection install git+https://github.com/ansible-collections/community.docker.git - ansible-galaxy collection install -r "$collection_root/requirements.yml" + ansible-galaxy collection install -r "${collection_root}/molecule-requirements.yml" + ansible-galaxy collection install -r "${collection_root}/requirements.yml" elif [ "$(printf '%s\n' "2.10" "$ansible_version" | sort -V | head -n1)" = "2.10" ]; then python -m pip install molecule molecule-docker - ansible-galaxy collection install git+https://github.com/ansible-collections/community.docker.git - ansible-galaxy collection install -r "$collection_root/requirements.yml" + ansible-galaxy collection install -r "${collection_root}/molecule-requirements.yml" + ansible-galaxy collection install -r "${collection_root}/requirements.yml" else python -m pip install molecule molecule-docker req_dir=$(mktemp -d)