rsyncd.yml 684 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. - name: 'Install Rsync daemon related packages'
  2. apt:
  3. pkg:
  4. - 'rsync'
  5. state: 'present'
  6. tags:
  7. - 'rsyncd'
  8. - name: 'Create Rsync daemon configuration directory'
  9. file:
  10. path: '/etc/rsync.d'
  11. owner: 'root'
  12. group: 'root'
  13. mode: 0755
  14. state: 'directory'
  15. tags:
  16. - 'rsyncd'
  17. - name: 'Install Rsync daemon configuration'
  18. template:
  19. src: 'templates/rsyncd.conf.j2'
  20. dest: '/etc/rsyncd.conf'
  21. owner: 'root'
  22. group: 'root'
  23. mode: 0644
  24. notify:
  25. - 'Restart Rsync Daemon'
  26. tags:
  27. - 'rsyncd'
  28. - name: 'Ensure Rsync daemon is running'
  29. service:
  30. name: 'rsync'
  31. state: 'started'
  32. tags:
  33. - 'rsyncd'
  34. # vim: ft=yaml.ansible