prepare.yml 373 Bytes
Newer Older
Pietsch, Martin's avatar
Pietsch, Martin committed
1
2
3
4
5
6
---

- name: Prepare
  hosts: all
  gather_facts: False
  tasks:
Pietsch, Martin's avatar
Pietsch, Martin committed
7
    - name: prepare alpine
Pietsch, Martin's avatar
Pietsch, Martin committed
8
      raw: apk add python3
Pietsch, Martin's avatar
Pietsch, Martin committed
9
10
11
12
13
14
15
16
17
18
      when: inventory_hostname == "alpine"

    - name: prepare debian
      block:
        - name: update apt
          raw: apt update 

        - name: install python
          raw: apt install --yes python3
      when: inventory_hostname == "debian"