Files @ e75d5d4fba3b
Branch filter:

Location: majic-ansible-roles/roles/preseed/molecule/default/prepare.yml

branko
MAR-149: Switch Molecule to using Python 3 interpreter in all tests on remote machines.
---

- name: Prepare
  hosts: all
  gather_facts: false
  tasks:
    - name: Install python for Ansible
      raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3-minimal)
      become: true
      changed_when: false

- hosts: parameters-mandatory
  become: true
  tasks:

    # @TODO: This is a hack because inventory_dir used for
    # preseed_directory comes from _host_.
    - name: Set-up inventory directory matching location where molecule is running itself
      file:
        path: "{{ inventory_dir }}"
        state: directory
        owner: vagrant
        group: vagrant
        mode: 0700