Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. - name: create sign user
  2. user:
  3. name: sign
  4. shell: /usr/local/bin/ca-shell
  5. - name: create request user
  6. user:
  7. name: request
  8. shell: /usr/local/bin/ca-server
  9. - name: install ca packages
  10. apt:
  11. name: "{{ item }}"
  12. state: present
  13. update_cache: yes
  14. cache_valid_time: 3600
  15. install_recommends: '{{ install_recommends | default("no") }}'
  16. with_items:
  17. - python3
  18. - python3-pip
  19. - python3-setuptools
  20. - name: install from release
  21. pip:
  22. name: https://github.com/LILiK-117bis/ca_manager/tarball/v0.2
  23. executable: pip3
  24. - name: create /var/lib/ca_manager
  25. file:
  26. path: /var/lib/ca_manager
  27. owner: sign
  28. group: sign
  29. mode: 0751
  30. state: directory
  31. - name: set outputs permissions
  32. file:
  33. path: /var/lib/ca_manager/outputs
  34. owner: sign
  35. group: sign
  36. mode: 0751
  37. state: directory
  38. - name: set private permissions
  39. file:
  40. path: /var/lib/ca_manager/private
  41. owner: sign
  42. group: sign
  43. mode: 0700
  44. state: directory
  45. - name: set requests permissions
  46. file:
  47. path: /var/lib/ca_manager/requests
  48. owner: sign
  49. group: request
  50. mode: 0730
  51. state: directory
  52. - name: set results permissions
  53. file:
  54. path: /var/lib/ca_manager/results
  55. owner: sign
  56. group: sign
  57. mode: 0751
  58. state: directory