diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml deleted file mode 100644 index 5ccbb76..0000000 --- a/molecule/archlinux/converge.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Converge - hosts: all - become: true - - pre_tasks: - - - name: Update repositories cache on Archlinux - community.general.pacman: - update_cache: true - become: true - - - name: Show ansible version - ansible.builtin.debug: - msg: "Ansible Version: {{ ansible_version.full }}" - - roles: - - role: ansible-rclone diff --git a/molecule/archlinux/molecule.yml b/molecule/archlinux/molecule.yml deleted file mode 100644 index dd32126..0000000 --- a/molecule/archlinux/molecule.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -dependency: - name: galaxy -driver: - name: docker -lint: | - set -e - yamllint . - ansible-lint -platforms: - - name: "rclone-${image:-archlinux}-${tag:-latest}-${TOX_ENVNAME}" - image: "carlodepieri/docker-archlinux-ansible" - command: ${MOLECULE_DOCKER_COMMAND:-""} - privileged: true - pre_build_image: true - ulimits: - - nofile:65535:65535 -provisioner: - name: ansible - playbooks: - converge: ${MOLECULE_PLAYBOOK:-converge.yml} - inventory: - host_vars: - instance: - rclone_release: ${TEST_RELEASE:-stable} - rclone_version: ${TEST_VERSION:-''} diff --git a/molecule/archlinux/verify.yml b/molecule/archlinux/verify.yml deleted file mode 100644 index 652afdf..0000000 --- a/molecule/archlinux/verify.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -- name: Verify - hosts: all - gather_facts: true - become: true - - tasks: - - - name: "Rclone - retrieve information" - ansible.builtin.stat: - path: "/usr/local/bin/rclone" - register: remote_file - - - name: "Rclone - assert that file is created correctly" - ansible.builtin.assert: - that: - - "remote_file.stat.exists" - - "remote_file.stat.isreg" # is a regular file - # - "remote_file.stat.path == '{{ test_rclone_file_path }}'" - - "remote_file.stat.mode == '0755'" - - - name: "Rclone - check version" - ansible.builtin.command: "/usr/local/bin/rclone version" # noqa no-changed-when - register: shell_result - - - name: "Display rclone version" - ansible.builtin.debug: - var: shell_result.stdout_lines diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 93e80ee..c8c1a06 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -8,14 +8,31 @@ lint: | yamllint . ansible-lint platforms: - - name: "rclone-${image:-debian11}-${tag:-latest}-${TOX_ENVNAME}" - image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest" + - name: "rclone-${image:-debian12}-${tag:-latest}-${TOX_ENVNAME}" + image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /run + - /tmp cgroupns_mode: host privileged: true pre_build_image: true + #- name: "rclone-${image:-archlinux}-${tag:-latest}-${TOX_ENVNAME}" + - name: "rclone-archlinux" + image: "carlodepieri/docker-archlinux-ansible" + command: ${MOLECULE_DOCKER_COMMAND:-""} + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:rw + tmpfs: + - /run + - /tmp + cgroupns_mode: host + privileged: true + pre_build_image: true + ulimits: + - nofile:65535:65535 provisioner: name: ansible playbooks: @@ -25,3 +42,5 @@ provisioner: instance: rclone_release: ${TEST_RELEASE:-stable} rclone_version: ${TEST_VERSION:-''} + rclone-archlinux: + ansible_user: ansible