Skip to content

Commit ff07615

Browse files
dankowzhan9sanapatardkonstruktoidpre-commit-ci[bot]
authored
Add support for platform parameter (#95)
* Docker: Add support for `platform` parameter Pass `platform` value from `platforms.item` to `docker_container`. Example usage: ``` driver: name: docker platforms: - name: test-01 image: ... pre_build_image: true platform: linux/amd64 ``` As suggested in the [docker_container documentation](https://docs.ansible.com/ansible/latest/collections/community/docker/docker_container_module.html#ansible-collections-community-docker-docker-container-module), ignore the `platform` parameter when comparing state. Addresses issue #94. * Trigger checks * Fix ci issue (#111) * Fix ci issue * fix ci * Optimize CI (#112) Install collection from galaxy, fix typo, do not install ansible via apt-get * README.md: Update plugin list (#91) With newly added plugins, the list has to be updated. Signed-off-by: Arnaud Patard <[email protected]> * Perform linting on Ansible playbooks (#101) * skip experimental rules Signed-off-by: Thomas Sjögren <[email protected]> * Lint ansible files Signed-off-by: Thomas Sjögren <[email protected]> * fix missed alignment Signed-off-by: Thomas Sjögren <[email protected]> * Fix blk100 flake8 errors Flake8 is giving errors about some empty lines in the code, so remove the line to fix these errors. Signed-off-by: Arnaud Patard <[email protected]> --------- Signed-off-by: Thomas Sjögren <[email protected]> Signed-off-by: Arnaud Patard <[email protected]> Co-authored-by: Arnaud Patard <[email protected]> * [pre-commit.ci] pre-commit autoupdate (#93) updates: - [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0) - [github.com/ansible/ansible-lint.git: v6.10.2 → v6.14.2](https://github.com/ansible/ansible-lint.git/compare/v6.10.2...v6.14.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * install python3 only when ansible_system == Linux (#110) * assume windows when ansible_connection is winrm Signed-off-by: Thomas Sjögren <[email protected]> * replace raw: with package: Signed-off-by: Thomas Sjögren <[email protected]> * revert back to raw Signed-off-by: Thomas Sjögren <[email protected]> * use uname to check if it's a Linux system Signed-off-by: Thomas Sjögren <[email protected]> --------- Signed-off-by: Thomas Sjögren <[email protected]> * Make selinux an optional extra (#89) As our special selinux shim dependency also caused problems for people that did not really need selinux, we now make it a simple extra. * Trigger checks --------- Signed-off-by: Arnaud Patard <[email protected]> Signed-off-by: Thomas Sjögren <[email protected]> Co-authored-by: Jack <[email protected]> Co-authored-by: Arnaud Patard <[email protected]> Co-authored-by: Thomas Sjögren <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sorin Sbarnea <[email protected]>
1 parent a434da3 commit ff07615

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/molecule_plugins/docker/playbooks/create.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@
174174
stop_signal: "{{ item.stop_signal | default(omit) }}"
175175
kill_signal: "{{ item.kill_signal | default(omit) }}"
176176
cgroupns_mode: "{{ item.cgroupns_mode | default(omit) }}"
177+
platform: "{{ item.platform | default(omit) }}"
178+
comparisons:
179+
platform: ignore
177180
register: server
178181
with_items: "{{ molecule_yml.platforms }}"
179182
loop_control:

0 commit comments

Comments
 (0)