|
1 |
| -- name: Get shortened commit hash |
2 |
| - command: |
3 |
| - cmd: git rev-parse --short HEAD |
4 |
| - register: short_commit_hash |
5 | 1 | - name: Create directory structure
|
6 | 2 | file:
|
7 | 3 | state: directory
|
|
18 | 14 | with_fileglob:
|
19 | 15 | - "graphics/*.png"
|
20 | 16 | - name: Parse LDIF configuration
|
21 |
| - shell: |
22 |
| - cmd: python3 {{ role_path }}/files/parse.py --file {{ playbook_dir }}/files/naming_document/Configuration.ldf |
| 17 | + command: |
| 18 | + cmd: > |
| 19 | + python3 {{ role_path }}/files/parse.py |
| 20 | + --file {{ playbook_dir }}/files/naming_document/Configuration.ldf |
23 | 21 | register: public_key_services_configuration
|
| 22 | + changed_when: true |
24 | 23 | - name: Extract certificate templates from configuration
|
25 |
| - shell: |
26 |
| - cmd: python3 "{{ role_path }}/roles/naming_document/extract_templates.py --file {{ playbook_dir }}/files/Configuration.ldf --output-directory {{ playbook_dir }}/files/naming_document/ldif |
| 24 | + command: |
| 25 | + cmd: > |
| 26 | + python3 "{{ role_path }}/roles/naming_document/extract_templates.py |
| 27 | + --file {{ playbook_dir }}/files/Configuration.ldf |
| 28 | + --output-directory {{ playbook_dir }}/files/naming_document/ldif |
27 | 29 | when: extras.naming_and_profile_document.include_ldif | default(false)
|
| 30 | + changed_when: true |
28 | 31 | - name: Create index from template
|
29 | 32 | template:
|
30 | 33 | src: index.rst.j2
|
|
38 | 41 | - name: Perform RST linting
|
39 | 42 | command:
|
40 | 43 | cmd: doc8 --max-line-length 2000 "{{ role_path }}/_docs/chapters"
|
| 44 | + changed_when: false |
41 | 45 | - name: Copy diagrams scripts
|
42 | 46 | template:
|
43 | 47 | src: "{{ item }}"
|
44 | 48 | dest: '{{ role_path }}/_docs/diagrams/{{ item | basename | regex_replace("\.j2$", "") }}'
|
45 | 49 | with_fileglob: templates/diagrams/*.py.j2
|
46 | 50 | - name: Render diagrams
|
47 |
| - shell: python3 {{ item }} |
| 51 | + command: python3 {{ item }} |
48 | 52 | args:
|
49 | 53 | chdir: "{{ role_path }}/_docs/diagrams"
|
| 54 | + changed_when: true |
50 | 55 | with_fileglob: "{{ role_path }}/_docs/diagrams/*.py"
|
51 | 56 | - name: Create Sphinx configuration
|
52 | 57 | template:
|
|
0 commit comments