/maintenance.yml Secret
Created
August 14, 2014 12:58
Ansible use case question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- tasks: | |
- include_vars: "{{ config }}" | |
- copy: src=/data/{{ client_slug}}/backup.zip dest=/backups/{{ client_slug }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- name: Apt update and upgrade | |
apt: update_cache=yes upgrade=dist cache_valid_time=3600 | |
- name: Run maintenance tasks | |
include: maintenance.yml config="{{ item }}" | |
with_fileglob: client/*.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment