Use Molecule provisioned images
This commit is contained in:
		
							parent
							
								
									9fd12fe790
								
							
						
					
					
						commit
						9fabd5a845
					
				|  | @ -12,14 +12,14 @@ on: | ||||||
| jobs: | jobs: | ||||||
|   test: |   test: | ||||||
|     runs-on:  ubuntu-latest |     runs-on:  ubuntu-latest | ||||||
|     strategy: |     # strategy: | ||||||
|       fail-fast: false |     #   fail-fast: false | ||||||
|       matrix: |     #   matrix: | ||||||
|         config: |     #     config: | ||||||
|           - image: centos |     #       - image: centos | ||||||
|             tag: latest |     #         tag: latest | ||||||
|           - image: debian |     #       - image: debian | ||||||
|             tag: latest |     #         tag: latest | ||||||
|     steps: |     steps: | ||||||
| 
 | 
 | ||||||
|       - name: checkout |       - name: checkout | ||||||
|  | @ -29,6 +29,6 @@ jobs: | ||||||
| 
 | 
 | ||||||
|       - name: molecule |       - name: molecule | ||||||
|         uses: robertdebock/molecule-action@2.6.17 |         uses: robertdebock/molecule-action@2.6.17 | ||||||
|         with: |         # with: | ||||||
|           image: ${{ matrix.config.image }} |         #   image: ${{ matrix.config.image }} | ||||||
|           tag: ${{ matrix.config.tag }} |         #   tag: ${{ matrix.config.tag }} | ||||||
|  | @ -1,8 +1,6 @@ | ||||||
| --- | --- | ||||||
| - name: Converge | - name: Converge | ||||||
|   hosts: localhost |   hosts: all | ||||||
|   connection: local |  | ||||||
|   become: yes |  | ||||||
|   gather_facts: yes |   gather_facts: yes | ||||||
|   roles: |   roles: | ||||||
|     - role: ipr-cnrs.nftables |     - role: ipr-cnrs.nftables | ||||||
|  |  | ||||||
|  | @ -8,11 +8,16 @@ lint: | | ||||||
| driver: | driver: | ||||||
|   name: docker |   name: docker | ||||||
| platforms: | platforms: | ||||||
|   - name: "nftables-${image:-debian}-${tag:-latest}" |   - name: ubuntu-latest | ||||||
|     image: "${image:-debian}:${tag:-latest}" |     image: ubuntu:latest | ||||||
|     privileged: true |   - name: centos-latest | ||||||
|     volumes: |     image: centos-latest | ||||||
|       - /sys/fs/cgroup:/sys/fs/cgroup:ro |   # - name: "nftables-${image:-debian}-${tag:-latest}" | ||||||
|  |   #   image: "${image:-debian}:${tag:-latest}" | ||||||
|  |     # command: /lib/systemd/systemd | ||||||
|  |     # privileged: true | ||||||
|  |     # volumes: | ||||||
|  |     #   - /sys/fs/cgroup:/sys/fs/cgroup:ro | ||||||
| provisioner: | provisioner: | ||||||
|   name: ansible |   name: ansible | ||||||
| verifier: | verifier: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue