main.yml 547 B

1234567891011121314151617181920212223242526272829
  1. ---
  2. - name: Copying configuration file
  3. become: true
  4. template:
  5. src: templates/configuration.yml.j2
  6. dest: /etc/authelia/configuration.yml
  7. mode: 0700
  8. owner: root
  9. group: root
  10. notify:
  11. - Restart authelia
  12. - name: Copying user database file
  13. become: true
  14. template:
  15. src: templates/users-database.yml.j2
  16. dest: /etc/authelia/users_database.yml
  17. mode: 0700
  18. owner: root
  19. group: root
  20. - name: Enable authelia
  21. become: true
  22. systemd:
  23. name: authelia
  24. enabled: true
  25. masked: false
  26. state: started