Skip to content

Commit b6368c8

Browse files
Merge pull request #208 from sean-m-sullivan/conversion_guide
add conversion guide
2 parents 4b603d3 + 9de008f commit b6368c8

File tree

4 files changed

+78
-1
lines changed

4 files changed

+78
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ collections:
3939
# If you need a specific version of the collection, you can specify like this:
4040
# version: ...
4141
```
42+
## Conversion from Tower_configuration
43+
If you were using a version of redhat_cop.tower_configuration, please refer to our Conversion Guide here: [Conversion Guide](docs/CONVERSION_GUIDE.md)
4244

4345
## Using this collection
4446
The awx.awx or ansible.controller collection must be invoked in the playbook in order for ansible to pick up the correct modules to use.

docs/CONVERSION_GUIDE.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Red Hat Communties of Practice Controller Configuration Collection Conversion Guide
2+
3+
# REQUIREMENTS
4+
The AWX.AWX OR ANSIBLE.TOWER collections MUST be installed in order for this collection to work. It is recomended they be invoked in the playbook in the following way.
5+
6+
## Using this collection
7+
The awx.awx or ansible.controller collection must be invoked in the playbook in order for ansible to pick up the correct modules to use.
8+
9+
Otherwise it will look for the modules only in your base installation. If there are errors complaining about "couldn't resolve module/action" this is the most likely cause.
10+
11+
```yaml
12+
- name: Playbook to configure ansible controller post installation
13+
hosts: localhost
14+
connection: local
15+
vars:
16+
controller_validate_certs: false
17+
collections:
18+
- awx.awx
19+
- redhat_cop.controller_configuration
20+
```
21+
22+
# Variable name changes
23+
24+
### Major Variable names changed
25+
The Following Variables need to be changed:
26+
|Tower Variable Name|Controller Variable Name|
27+
|:---:|:---:|
28+
|`tower_ad_hoc_commands`|`controller_ad_hoc_commands`|
29+
|`tower_ad_hoc_commands_cancel`|`controller_ad_hoc_commands_cancel`|
30+
|`tower_applications`|`controller_applications`|
31+
|`tower_credential_input_sources`|`controller_credential_input_sources`|
32+
|`tower_credential_types`|`controller_credential_types`|
33+
|`tower_credentials`|`controller_credentials`|
34+
|`tower_execution_environments`|`controller_execution_environments`|
35+
|`tower_groups`|`controller_groups`|
36+
|`tower_hosts`|`controller_hosts`|
37+
|`tower_instance_groups`|`controller_instance_groups`|
38+
|`tower_inventories`|`controller_inventories`|
39+
|`tower_inventory_sources`|`controller_inventory_sources`|
40+
|`tower_launch_jobs`|`controller_launch_jobs`|
41+
|`tower_templates`|`controller_templates`|
42+
|`tower_cancel_jobs`|`controller_cancel_jobs`|
43+
|`tower_labels`|`controller_labels`|
44+
|`tower_license`|`controller_license`|
45+
|`tower_notifications`|`controller_notifications`|
46+
|`tower_organizations`|`controller_organizations`|
47+
|`tower_projects`|`controller_projects`|
48+
|`tower_rbac`|`controller_roles`|
49+
|`tower_schedules`|`controller_schedules`|
50+
|`tower_settings`|`controller_settings`|
51+
|`tower_teams`|`controller_teams`|
52+
|`tower_user_accounts`|`controller_user_accounts`|
53+
|`tower_workflows`|`controller_workflows`|
54+
|`tower_workflow_launch_jobs`|`controller_workflow_launch_jobs`|
55+
56+
### Authentication Credentials
57+
|Tower Variable Name|Controller Variable Name|
58+
|:---:|:---:|
59+
|`tower_username`|`controller_username`|
60+
|`tower_password`|`controller_password`|
61+
|`tower_oauthtoken`|`controller_oauthtoken`|
62+
|`tower_hostname`|`controller_hostname`|
63+
|`tower_config_file`|`controller_config_file`|
64+
|`tower_validate_certs`|`controller_validate_certs`|
65+
66+
### Specific Changes in Roles
67+
68+
### Projects
69+
|Tower Variable Name|Controller Variable Name|Reason|
70+
|:---:|:---:|:---:|
71+
|`default_environment`|`custom_virtualenv`|`enviroments now refer to Execution Enviroments`|
72+
73+
## Notes
74+
Making these changes should be all the ones you need to make in order to use the updated collection.
75+
However there have been many changes and this list is in no way final or all encompassing.
File renamed without changes.

roles/workflow_job_templates/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@
4949
loop_var: __workflow_loop_item
5050
when:
5151
- __workflow_loop_item.simplified_workflow_nodes is defined
52-
52+
- __workflow_loop_item.state == "present"
5353
...

0 commit comments

Comments
 (0)