Files
grm/ansible/roles/gitea-runner/molecule/common/prepare.yml
T

34 lines
890 B
YAML

---
- name: Prepare
hosts: all
become: true
tasks:
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
when: ansible_facts['os_family'] == 'Debian'
- name: Install python3-debian for deb822_repository module
ansible.builtin.apt:
name: python3-debian
state: present
when: ansible_facts['os_family'] == 'Debian'
- name: Update pacman cache
community.general.pacman:
update_cache: true
when: ansible_facts['os_family'] == 'Archlinux'
- name: Ensure /etc/docker directory exists
ansible.builtin.file:
path: /etc/docker
state: directory
mode: "0755"
- name: Configure Docker daemon for vfs storage driver (DinD)
ansible.builtin.copy:
dest: /etc/docker/daemon.json
content: |
{"storage-driver": "vfs"}
mode: "0644"