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
decentral1se a66d7d6e8d
init
2022-05-30 09:32:10 +02:00

31 lines
676 B
YAML

---
- 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