Sha256: 0ff3b19848dd2d69408342f2a94ecc7650e9c888045a01c0b2b5a726f642712b

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 KB

Contents

---
  - name: Create Backups directories
    file:
      owner: "{{deploy_user}}"
      path: "/u/apps/{{project_name}}/shared/db/backups"
      state: directory

  - file: path=/u/apps/{{project_name}}/shared/db/backups/backup.hourly state=directory mode=0755 owner={{deploy_user}}
  - file: path=/u/apps/{{project_name}}/shared/db/backups/backup.daily state=directory mode=0755 owner={{deploy_user}}
  - file: path=/u/apps/{{project_name}}/shared/db/backups/backup.weekly state=directory mode=0755 owner={{deploy_user}}
  - file: path=/u/apps/{{project_name}}/shared/db/backups/backup.monthly state=directory mode=0755 owner={{deploy_user}}


  - name: Copy backup script
    template:
      owner: "{{deploy_user}}"
      src: backup.sh
      dest: "/u/apps/{{project_name}}/shared/db/backup.sh"
      mode: 0755

  - name: Remove old backup cron job because it had the wrong name
    cron:
      user: "{{deploy_user}}"
      name: "check dirs"
      state: "absent"

  - name: Install backup cron job
    when: backups_enabled
    cron:
      user: "{{deploy_user}}"
      name: "Hourly backups"
      minute: "0"
      job: "/u/apps/{{project_name}}/shared/db/backup.sh"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
subspace-0.3.0 ansible/roles/postgresql/tasks/backups.yml
subspace-0.2.1 ansible/roles/postgresql/tasks/backups.yml
subspace-0.1.3 ansible/roles/postgresql/tasks/backups.yml
subspace-0.1.2 ansible/roles/postgresql/tasks/backups.yml
subspace-0.1.1 ansible/roles/postgresql/tasks/backups.yml