title: Ansible molecule using docker - how to specify memory limit
body: <p>I have a molecule test which spins up 2 Docker containers, for testing 2 application versions at once.</p>
  
  <pre><code>dependency:
    name: galaxy
  driver:
    name: docker
  lint:
    name: yamllint
  platforms:
    - name: molecule1
      hostname: molecule1
      image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
      command: ${MOLECULE_DOCKER_COMMAND:-""}
      volumes:
        - /sys/fs/cgroup:/sys/fs/cgroup:ro
      privileged: true
      pre_build_image: true
    - name: molecule2
      hostname: molecule2
      image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
      command: ${MOLECULE_DOCKER_COMMAND:-""}
      volumes:
        - /sys/fs/cgroup:/sys/fs/cgroup:ro
      privileged: true
      pre_build_image: true
  provisioner:
    name: ansible
    inventory:
      host_vars:
        molecule1:
          app_version: "v1"
        molecule2:
          app_version: "v2"
    lint:
      name: ansible-lint
  scenario:
    name: default
    converge_sequence:
      - syntax
      - lint
      - create
      - prepare
      - converge
      - idempotence
      - verify
  verifier:
    name: goss
    lint:
      name: yamllint
  </code></pre>
  
  <p>I am looking for a way to specify the memory like <code>-m</code> or <code>--memory=</code> as described <a href="https://docs.docker.com/config/containers/resource_constraints/" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I understand that <code>molecule</code> makes use of the <code>docker_container</code> ansible module, which support the <a href="https://docs.ansible.com/ansible/latest/modules/docker_container_module.html#parameter-memory" rel="nofollow noreferrer">memory</a> parameter, but somehow I cannot find a way to make this work in <code>molecule</code>.</p>
  
  <p>Any ideas how to accomplish this?</p>
  
  <p>PS: My guess is that this parameter is not yet implemented in molecule, if my assumption is correct that <a href="https://github.com/ansible-community/molecule/blob/master/molecule/provisioner/ansible/playbooks/docker/create.yml" rel="nofollow noreferrer">this</a> is the implementation.</p>
  
  <p>Thanks in advance.</p>