nas-common.yml 375 B

12345678910111213141516171819
  1. ---
  2. - hosts: nas
  3. become: true
  4. gather_facts: true
  5. vars:
  6. host_pkgs:
  7. - ansible
  8. host_bash_aliases:
  9. - user: root
  10. alias: snapraid-watch-log
  11. command: tail -f /tmp/snapRAID.log
  12. - user: root
  13. alias: restartvpn
  14. command: "cd ~/git/infra ; ansible-playbook plays/restart-vpn.yml ; cd - > /dev/null"
  15. roles:
  16. - common