Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

38 строки
1011 B

  1. ---
  2. - name: Allow access to HTTP/HTTPS in firewalld
  3. firewalld:
  4. service: "{{ item }}"
  5. state: enabled
  6. immediate: yes
  7. permanent: yes
  8. with_items:
  9. - http
  10. - https
  11. - name: Ensure acmetool Docker image is pulled
  12. docker_image:
  13. name: willwill/acme-docker
  14. - name: Ensure SSL certificates path exists
  15. file:
  16. path: "{{ ssl_certs_path }}"
  17. state: directory
  18. mode: 0770
  19. owner: "{{ matrix_user_username }}"
  20. group: "{{ matrix_user_username }}"
  21. - name: Ensure SSL certificates are marked as wanted in acmetool
  22. shell: >-
  23. /usr/bin/docker run --rm --name acmetool-host-grab -p 80:80
  24. -v {{ ssl_certs_path }}:/certs
  25. -e ACME_EMAIL={{ ssl_support_email }}
  26. willwill/acme-docker
  27. acmetool want {{ hostname_matrix }} {{ hostname_riot }} --xlog.severity=debug
  28. - name: Ensure periodic SSL renewal cronjob configured
  29. template:
  30. src: "{{ role_path }}/templates/cron.d/ssl-certificate-renewal.j2"
  31. dest: "/etc/cron.d/ssl-certificate-renewal"
  32. mode: 0600