Files @ b46fe4ab1956
Branch filter:

Location: majic-ansible-roles/roles/common/molecule/default/playbook.yml

branko
MAR-160: Minor fixes while preparing the machines:

- Use the correct path for initialised CA hierarchy.
- Remove the ss utility instead of renaming it in order to avoid
issues when rerunning the prepare step during testing.
---

- hosts: helper
  become: true
  tasks:

    - name: Install apt-cacher-ng
      apt:
        name: apt-cacher-ng
        state: present

- hosts: parameters-mandatory,parameters-optional
  become: true
  roles:
    - common

- hosts: parameters-mandatory,parameters-optional
  become: true
  tasks:

    - name: Set-up directories for testing pip requirements upgrade checks script
      file:
        path: "{{ item }}"
        state: directory
        owner: root
        group: pipreqcheck
        mode: 0750
      with_items:
        - "/tmp/pip_check_requirements_upgrades"
        - "/tmp/pip_check_requirements_upgrades/with_updates"
        - "/tmp/pip_check_requirements_upgrades/without_updates"
        - "/tmp/pip_check_requirements_upgrades-py3"
        - "/tmp/pip_check_requirements_upgrades-py3/with_updates"
        - "/tmp/pip_check_requirements_upgrades-py3/without_updates"

    - name: Deploy files for testing pip requirements upgrade checks script
      copy:
        src: "{{ item }}"
        dest: "/tmp/{{ item }}"
        owner: root
        group: pipreqcheck
        mode: 0640
        directory_mode: 0750
      with_items:
        - "pip_check_requirements_upgrades/with_updates/requirements.in"
        - "pip_check_requirements_upgrades/with_updates/requirements.txt"
        - "pip_check_requirements_upgrades/without_updates/requirements.in"
        - "pip_check_requirements_upgrades/without_updates/requirements.txt"
        - "pip_check_requirements_upgrades-py3/with_updates/requirements.in"
        - "pip_check_requirements_upgrades-py3/with_updates/requirements.txt"
        - "pip_check_requirements_upgrades-py3/without_updates/requirements.in"
        - "pip_check_requirements_upgrades-py3/without_updates/requirements.txt"