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.

73 lines
1.5 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 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. # Waiting for ca_manager update
  16. # Remove after ca_manager update --->
  17. - git
  18. # <---
  19. state: present
  20. update_cache: yes
  21. cache_valid_time: 3600
  22. install_recommends: '{{ install_recommends | default("no") }}'
  23. - name: install from release
  24. pip:
  25. # Waiting for ca_manager update
  26. # Replace after ca_manager update --->
  27. #name: https://github.com/LILiK-117bis/ca_manager/tarball/v0.3
  28. name: git+https://github.com/LILik-117bis/ca_manager.git@peewee3+rfc5280
  29. # <---
  30. executable: pip3
  31. - name: create /var/lib/ca_manager
  32. file:
  33. path: /var/lib/ca_manager
  34. owner: sign
  35. group: sign
  36. mode: 0751
  37. state: directory
  38. - name: set outputs permissions
  39. file:
  40. path: /var/lib/ca_manager/outputs
  41. owner: sign
  42. group: sign
  43. mode: 0751
  44. state: directory
  45. - name: set private permissions
  46. file:
  47. path: /var/lib/ca_manager/private
  48. owner: sign
  49. group: sign
  50. mode: 0700
  51. state: directory
  52. - name: set requests permissions
  53. file:
  54. path: /var/lib/ca_manager/requests
  55. owner: sign
  56. group: request
  57. mode: 0730
  58. state: directory
  59. - name: set results permissions
  60. file:
  61. path: /var/lib/ca_manager/results
  62. owner: sign
  63. group: sign
  64. mode: 0751
  65. state: directory