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.
|
- ---
-
- # setup ca directory
-
- - name: directory
- file:
- path: "{{ certificate_authority_directory }}"
- state: directory
-
- - name: subdirectories
- file:
- path: "{{ certificate_authority_directory }}/{{ item }}"
- state: directory
- with_items:
- - certs
- - crl
- - csr
- - cnf
- - newcerts
-
- - name: private directory
- file:
- path: "{{ certificate_authority_directory }}/private"
- mode: 0700
- state: directory
-
- - name: index
- copy:
- content: ""
- dest: "{{ certificate_authority_directory }}/index"
- force: no
-
- - name: index config
- template:
- src: index.attr.j2
- dest: "{{ certificate_authority_directory }}/index.attr"
-
- - name: serial
- copy:
- content: "00\n"
- dest: "{{ certificate_authority_directory }}/serial"
- force: no
-
- - name: config
- template:
- src: ca.cnf.j2
- dest: "{{ certificate_authority_directory }}/cnf/ca.cnf"
|