Sha256: 5f1a7612673e876c2a65393c267e6e453a04fa1257f5deb8e3a984b96e3b7f7d
Contents?: true
Size: 943 Bytes
Versions: 33
Compression:
Stored size: 943 Bytes
Contents
--- - name: Check that /opt/subspace/ exists stat: path: /opt/subspace/ register: subspace_dir tags: - maintenance_on - maintenance_off - name: Check that /u/apps/{{project_name}}/current/public/maintenance.html exists stat: path: /u/apps/{{project_name}}/current/public/maintenance.html register: app_maintenance_html tags: - maintenance_on - name: Move maintenance.html to /opt/subspace command: cp /u/apps/{{project_name}}/current/public/maintenance.html /opt/subspace/maintenance.html args: creates: /opt/subspace/maintenance.html when: - app_maintenance_html.stat.exists == True - subspace_dir.stat.exists == True tags: - maintenance_on - name: Remove /opt/subspace/maintenance.html file: path: /opt/subspace/maintenance.html state: absent when: subspace_dir.stat.exists == True tags: - maintenance_off
Version data entries
33 entries across 33 versions & 1 rubygems