Skip to content

Commit 7bd0469

Browse files
authored
Merge pull request #5 from Tompage1994/devel
Adds Table of Contents
2 parents f6b387d + ea541f5 commit 7bd0469

File tree

5 files changed

+34
-201
lines changed

5 files changed

+34
-201
lines changed

.github/collection_index.md.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
title: {{ collection_name }}
4+
has_children: true
5+
---
6+
7+
# {{ collection_name }}

.github/fix_readme.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- name: Get collections
88
ansible.builtin.find:
9-
path: "{{ r_tempfile.path }}/{{ outer_item}}/roles/"
9+
path: "{{ r_tempfile.path }}/{{ outer_item }}/roles/"
1010
file_type: directory
1111
register: r_roles
1212

@@ -38,14 +38,23 @@
3838
line: |
3939
---
4040
layout: default
41+
parent: {{ outer_item }}
4142
---
4243
loop: "{{ roles_list }}"
4344

4445
- name: Copy and rename readme
4546
ansible.builtin.copy:
4647
src: "{{ r_tempfile['path'] }}/{{ outer_item }}/roles/{{ item }}/README.md"
47-
dest: "../_collections/{{ outer_item }}/{{ item }}.md"
48+
dest: "../collections/{{ outer_item }}/{{ item }}.md"
4849
remote_src: true
4950
mode: "0644"
5051
loop: "{{ roles_list }}"
52+
53+
- name: Create collection index page
54+
ansible.builtin.template:
55+
src: collection_index.md.j2
56+
dest: "../collections/{{ outer_item }}/index.md"
57+
mode: "0644"
58+
vars:
59+
collection_name: "{{ outer_item }}"
5160
...

.github/index.md.j2

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/playbook.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
tasks:
77
- name: Delete directories
88
ansible.builtin.file:
9-
path: "../_collections"
9+
path: "../collections"
1010
state: absent
1111
mode: "0755"
1212

13-
- name: Create _collections directory
13+
- name: Create collections directory
1414
ansible.builtin.file:
15-
path: "../_collections"
15+
path: "../collections"
1616
state: directory
1717
mode: "0755"
1818

1919
- name: Create sub directories
2020
ansible.builtin.file:
21-
path: "../_collections/{{ item }}"
21+
path: "../collections/{{ item }}"
2222
state: directory
2323
mode: "0755"
2424
loop:
@@ -100,7 +100,7 @@
100100

101101
- name: Get list of files controller_config
102102
ansible.builtin.find:
103-
path: ../_collections/controller_configuration
103+
path: ../collections/controller_configuration
104104
file_type: file
105105
patterns: '*.md'
106106
register: r_controller_config
@@ -112,7 +112,7 @@
112112

113113
- name: Get list of files galaxy_collection
114114
ansible.builtin.find:
115-
path: ../_collections/galaxy_collection
115+
path: ../collections/galaxy_collection
116116
file_type: file
117117
patterns: '*.md'
118118
register: r_galaxy_collection
@@ -124,7 +124,7 @@
124124

125125
- name: Get list of files eda_config
126126
ansible.builtin.find:
127-
path: ../_collections/eda_configuration
127+
path: ../collections/eda_configuration
128128
file_type: file
129129
patterns: '*.md'
130130
register: r_eda_config
@@ -136,7 +136,7 @@
136136

137137
- name: Get list of files aap_utilities
138138
ansible.builtin.find:
139-
path: ../_collections/aap_utilities
139+
path: ../collections/aap_utilities
140140
file_type: file
141141
patterns: '*.md'
142142
register: r_aap_utilities
@@ -148,7 +148,7 @@
148148

149149
- name: Get list of files ee_utilities
150150
ansible.builtin.find:
151-
path: ../_collections/ee_utilities
151+
path: ../collections/ee_utilities
152152
file_type: file
153153
patterns: '*.md'
154154
register: r_ee_utilities
@@ -157,10 +157,4 @@
157157
ansible.builtin.set_fact:
158158
ee_utilities: "{{ ee_utilities | default([]) + [item | ansible.builtin.basename] }}"
159159
loop: "{{ r_ee_utilities['files'] | map(attribute='path') | flatten }}"
160-
161-
- name: Generate index template
162-
ansible.builtin.template:
163-
src: index.md.j2
164-
dest: ../index.md
165-
mode: "0644"
166160
...

index.md

Lines changed: 7 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2-
2+
layout: default
3+
title: Home
4+
nav_order: 1
35
---
46

57
# Ansible Automation Platform Configuration as Code Collections
@@ -27,104 +29,19 @@ Links to Ansible Automation Platform Collections
2729

2830
|Collection Name|Purpose|
2931
|---------|---------|
30-
|[awx.awx/Ansible.controller repo](https://github.com/ansible/awx/tree/devel/awx_collection)|Automation controller modules|
31-
|[Ansible Hub Configuration](https://github.com/ansible/automation_hub_collection)|Automation hub configuration|
32+
|[awx.awx/Ansible.controller repo](https://github.com/ansible/awx/tree/devel/awx_collection)|Automation Controller modules|
33+
|[Ansible Hub Configuration](https://github.com/ansible/automation_hub_collection)|Automation Hub configuration|
3234

3335
Links to other Validated Configuration Collections for Ansible Automation Platform
3436

3537
|Collection Name|Purpose|
3638
|---------|---------|
37-
|[Controller Configuration](https://github.com/redhat-cop/controller_configuration)|Automation controller configuration|
39+
|[Controller Configuration](https://github.com/redhat-cop/controller_configuration)|Automation Controller configuration|
40+
|[EDA Configuration](https://github.com/redhat-cop/eda_configuration)|Event-Driven Ansible Controller configuration|
3841
|[EE Utilities](https://github.com/redhat-cop/ee_utilities)|Execution Environment creation utilities|
3942
|[AAP installation Utilities](https://github.com/redhat-cop/aap_utilities)|Ansible Automation Platform Utilities|
4043
|[AAP Configuration Template](https://github.com/redhat-cop/aap_configuration_template)|Configuration Template for this suite|
4144

42-
### Controller Configuration:
43-
* [ad_hoc_command](collections/controller_configuration/ad_hoc_command.html)
44-
* [ad_hoc_command_cancel](collections/controller_configuration/ad_hoc_command_cancel.html)
45-
* [applications](collections/controller_configuration/applications.html)
46-
* [bulk_host_create](collections/controller_configuration/bulk_host_create.html)
47-
* [bulk_job_launch](collections/controller_configuration/bulk_job_launch.html)
48-
* [credential_input_sources](collections/controller_configuration/credential_input_sources.html)
49-
* [credential_types](collections/controller_configuration/credential_types.html)
50-
* [credentials](collections/controller_configuration/credentials.html)
51-
* [dispatch](collections/controller_configuration/dispatch.html)
52-
* [execution_environments](collections/controller_configuration/execution_environments.html)
53-
* [filetree_create](collections/controller_configuration/filetree_create.html)
54-
* [filetree_read](collections/controller_configuration/filetree_read.html)
55-
* [global_vars](collections/controller_configuration/global_vars.html)
56-
* [groups](collections/controller_configuration/groups.html)
57-
* [hosts](collections/controller_configuration/hosts.html)
58-
* [instance_groups](collections/controller_configuration/instance_groups.html)
59-
* [instances](collections/controller_configuration/instances.html)
60-
* [inventories](collections/controller_configuration/inventories.html)
61-
* [inventory_source_update](collections/controller_configuration/inventory_source_update.html)
62-
* [inventory_sources](collections/controller_configuration/inventory_sources.html)
63-
* [job_launch](collections/controller_configuration/job_launch.html)
64-
* [job_templates](collections/controller_configuration/job_templates.html)
65-
* [jobs_cancel](collections/controller_configuration/jobs_cancel.html)
66-
* [labels](collections/controller_configuration/labels.html)
67-
* [license](collections/controller_configuration/license.html)
68-
* [notification_templates](collections/controller_configuration/notification_templates.html)
69-
* [object_diff](collections/controller_configuration/object_diff.html)
70-
* [organizations](collections/controller_configuration/organizations.html)
71-
* [project_update](collections/controller_configuration/project_update.html)
72-
* [projects](collections/controller_configuration/projects.html)
73-
* [roles](collections/controller_configuration/roles.html)
74-
* [schedules](collections/controller_configuration/schedules.html)
75-
* [settings](collections/controller_configuration/settings.html)
76-
* [teams](collections/controller_configuration/teams.html)
77-
* [users](collections/controller_configuration/users.html)
78-
* [workflow_job_templates](collections/controller_configuration/workflow_job_templates.html)
79-
* [workflow_launch](collections/controller_configuration/workflow_launch.html)
80-
81-
### Ansible Hub Configuration:
82-
* [ansible_config](collections/galaxy_collection/ansible_config.html)
83-
* [collection](collections/galaxy_collection/collection.html)
84-
* [collection_remote](collections/galaxy_collection/collection_remote.html)
85-
* [collection_repository](collections/galaxy_collection/collection_repository.html)
86-
* [collection_repository_sync](collections/galaxy_collection/collection_repository_sync.html)
87-
* [dispatch](collections/galaxy_collection/dispatch.html)
88-
* [ee_image](collections/galaxy_collection/ee_image.html)
89-
* [ee_namespace](collections/galaxy_collection/ee_namespace.html)
90-
* [ee_registry](collections/galaxy_collection/ee_registry.html)
91-
* [ee_registry_index](collections/galaxy_collection/ee_registry_index.html)
92-
* [ee_registry_sync](collections/galaxy_collection/ee_registry_sync.html)
93-
* [ee_repository](collections/galaxy_collection/ee_repository.html)
94-
* [ee_repository_sync](collections/galaxy_collection/ee_repository_sync.html)
95-
* [group](collections/galaxy_collection/group.html)
96-
* [group_roles](collections/galaxy_collection/group_roles.html)
97-
* [namespace](collections/galaxy_collection/namespace.html)
98-
* [publish](collections/galaxy_collection/publish.html)
99-
* [repository](collections/galaxy_collection/repository.html)
100-
* [repository_sync](collections/galaxy_collection/repository_sync.html)
101-
* [role](collections/galaxy_collection/role.html)
102-
* [user](collections/galaxy_collection/user.html)
103-
104-
### Event Driven Ansible Configuration:
105-
* [credential](collections/eda_config/credential.html)
106-
* [decision_environment](collections/eda_config/decision_environment.html)
107-
* [project](collections/eda_config/project.html)
108-
* [project_sync](collections/eda_config/project_sync.html)
109-
* [rulebook_activation](collections/eda_config/rulebook_activation.html)
110-
* [user_token](collections/eda_config/user_token.html)
111-
112-
### AAP Installation Utilities:
113-
* [aap_backup](collections/aap_utilities/aap_backup.html)
114-
* [aap_certs](collections/aap_utilities/aap_certs.html)
115-
* [aap_ocp_install](collections/aap_utilities/aap_ocp_install.html)
116-
* [aap_remove](collections/aap_utilities/aap_remove.html)
117-
* [aap_restore](collections/aap_utilities/aap_restore.html)
118-
* [aap_setup_download](collections/aap_utilities/aap_setup_download.html)
119-
* [aap_setup_install](collections/aap_utilities/aap_setup_install.html)
120-
* [aap_setup_prepare](collections/aap_utilities/aap_setup_prepare.html)
121-
* [git_ssh_setup](collections/aap_utilities/git_ssh_setup.html)
122-
* [kerberos](collections/aap_utilities/kerberos.html)
123-
124-
### Execution Environment Utilities:
125-
* [ee_builder](collections/ee_utilities/ee_builder.html)
126-
* [virtualenv_migrate](collections/ee_utilities/virtualenv_migrate.html)
127-
12845
## Contributing to this Documentation
12946
We welcome community contributions to this documentation, or any of the mentioned collections. If you find problems, please open an issue and consider creating a PR against this, or any relevant, repository. More information about contributing can be found in our [Contribution Guidelines](CONTRIBUTE.html).
13047

0 commit comments

Comments
 (0)