prepare.yml 285 Bytes
Newer Older
Bengt Giger's avatar
Bengt Giger committed
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: Prepare
  hosts: all
  tasks:
    - name: Update apt cache
      apt:
        update_cache: true
      when: ansible_os_family == "Debian"

    - name: Ensure /etc/cron.d exists (missing in some Docker images)
      file:
        path: /etc/cron.d
        state: directory