nas-common.yml 494 B

1234567891011121314151617181920212223
  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. - user: root
  16. alias: halogs
  17. command: "tail -n 50 -f /opt/homeassistant/home-assistant.log"
  18. roles:
  19. - common