ansible-role-authentik/molecule/default/prepare.yml

31 lines
722 B
YAML
Raw Normal View History

2022-09-16 16:07:01 +02:00
---
2022-09-16 22:34:37 +02:00
- name: Setup the test machine
2022-09-22 11:22:57 +02:00
hosts: instance-authentik
2022-09-16 16:07:01 +02:00
tasks:
- name: Create docker.sock
2022-09-16 16:07:01 +02:00
raw: touch /var/run/docker.sock
become: true
changed_when: false
2022-09-22 11:22:57 +02:00
- name: Move docker.sock from tmp
2022-09-16 22:34:37 +02:00
raw: mount --move /tmp/docker_mounted.sock /var/run/docker.sock
2022-09-16 16:07:01 +02:00
become: true
changed_when: false
2022-09-22 11:22:57 +02:00
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
- name: Install python requests
pip:
name:
- requests
- docker
- docker-compose
- name: Install docker
vars:
docker_service_manage: false
include_role:
name: geerlingguy.docker