This repository has been archived on 2022-05-30. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.discourse-email/molecule/default/prepare.yml

31 lines
676 B
YAML
Raw Normal View History

2022-05-30 07:31:11 +00:00
---
- name: Prepare
hosts: all
gather_facts: True
become: True
roles:
- role: geerlingguy.docker
tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal python-zipstream)
become: true
changed_when: false
- name: Install Ansible Python packages
apt:
package:
- python-setuptools
- python-pip
become: true
- name: Install python-docker
pip:
name: docker
- name: Create dummy Discourse container
docker_container:
name: app
image: alpine
state: started
privileged: true