Files @ 2d15529786b7
Branch filter:

Location: majic-ansible-roles/roles/backup_client/molecule/default/converge.yml - annotation

branko
MAR-218: Fix linting errors related to commands doing unconditional changes:

- Tasks run during the prepare stage of test runs do not matter.
- Some of the role tasks are already effectively running only when
change _will_ happen (when it is detected via variable registered by
a previous task).
---

- name: Converge
  hosts: parameters-mandatory,parameters-optional
  become: true
  roles:
    - backup_client

# Deploy a dummy pre-backup script for testing purposes.
- name: Converge, test fixtures
  hosts: parameters-mandatory,parameters-optional
  become: true
  tasks:

    - name: Deploy pre-backup script
      copy:
        src: tests/data/10-test-pre-backup.sh
        dest: /etc/duply/main/pre.d/10-test-pre-backup.sh
        owner: root
        group: root
        mode: 0700