31 lines
676 B
YAML
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
|