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.

65 lines
1.2 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. pkg:
  12. - python3
  13. - python3-pip
  14. - python3-setuptools
  15. state: present
  16. update_cache: yes
  17. cache_valid_time: 3600
  18. install_recommends: '{{ install_recommends | default("no") }}'
  19. - name: install from release
  20. pip:
  21. name: https://github.com/LILiK-117bis/ca_manager/tarball/v0.3
  22. executable: pip3
  23. - name: create /var/lib/ca_manager
  24. file:
  25. path: /var/lib/ca_manager
  26. owner: sign
  27. group: sign
  28. mode: 0751
  29. state: directory
  30. - name: set outputs permissions
  31. file:
  32. path: /var/lib/ca_manager/outputs
  33. owner: sign
  34. group: sign
  35. mode: 0751
  36. state: directory
  37. - name: set private permissions
  38. file:
  39. path: /var/lib/ca_manager/private
  40. owner: sign
  41. group: sign
  42. mode: 0700
  43. state: directory
  44. - name: set requests permissions
  45. file:
  46. path: /var/lib/ca_manager/requests
  47. owner: sign
  48. group: request
  49. mode: 0730
  50. state: directory
  51. - name: set results permissions
  52. file:
  53. path: /var/lib/ca_manager/results
  54. owner: sign
  55. group: sign
  56. mode: 0751
  57. state: directory