bck.yml 426 B

12345678910111213141516171819
  1. ---
  2. - name: Backup the system configuration
  3. hosts: servera.lab.example.com
  4. become: true
  5. gather_facts: false
  6. tasks:
  7. - name: Ensure the machine is up
  8. gls.utils.newping:
  9. data: pong
  10. - name: Ensure configuration files are saved
  11. include_role:
  12. name: gls.utils.backup
  13. vars:
  14. backup_id: backup_etc
  15. backup_files:
  16. - /etc/sysconfig
  17. - /etc/yum.repos.d