Anton Shestakov <av6@dwimlabs.net>, Wed, 10 Aug 2016 01:19:54 +0800
updatesri: this is bash, use $() instead of ``
contrib/provision/roles/certs/tasks/main.yml
Permissions: -rw-r--r--
- name: Make sure {{ path }} exists - name: Make sure domain directories exist path: '{{ path }}/{{ item }}' with_items: '{{ selfsigned }}' - name: Generate private keys -out '{{ path }}/{{ item }}/clean.key' creates: '{{ path }}/{{ item }}/clean.key' with_items: '{{ selfsigned }}' - name: Set permissions for private keys path: '{{ path }}/{{ item }}/clean.key' with_items: '{{ selfsigned }}' - name: Generate self-signed certificates -key '{{ path }}/{{ item }}/clean.key' -out '{{ path }}/{{ item }}/selfsigned.pem' creates: '{{ path }}/{{ item }}/selfsigned.pem' with_items: '{{ selfsigned }}' - name: Set permissions for self-signed certificates path: '{{ path }}/{{ item }}/selfsigned.pem' with_items: '{{ selfsigned }}'