You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Ansible collection allows for easy interaction with an AWX or Ansible Controller server via Ansible roles using the AWX/Controller collection modules.
8
8
9
-
# REQUIREMENTS
10
-
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.
9
+
## REQUIREMENTS
10
+
11
+
The AWX.AWX OR ANSIBLE.CONTROLLER collections MUST be installed in order for this collection to work. It is recommended they be invoked in the playbook in the following way.
11
12
12
13
```yaml
13
14
---
@@ -28,7 +29,9 @@ Click the `Content` button to see the list of content included in this collectio
28
29
29
30
You can install the redhat_cop controller_configuration collection with the Ansible Galaxy CLI:
These can be specified via (from highest to lowest precedence):
82
91
83
-
- direct role variables as mentioned above
84
-
- environment variables (most useful when running against localhost)
85
-
- a config file path specified by the `controller_config_file` parameter
86
-
- a config file at `~/.controller_cli.cfg`
87
-
- a config file at `/etc/controller/controller_cli.cfg`
92
+
- direct role variables as mentioned above
93
+
- environment variables (most useful when running against localhost)
94
+
- a config file path specified by the `controller_config_file` parameter
95
+
- a config file at `~/.controller_cli.cfg`
96
+
- a config file at `/etc/controller/controller_cli.cfg`
88
97
89
98
Config file syntax looks like this:
90
99
91
-
```
100
+
```ini
92
101
[general]
93
102
host = https://localhost:8043
94
103
verify_ssl = true
95
104
oauth_token = LEdCpKVKc4znzffcpQL5vLG8oyeku6
96
105
```
97
106
98
107
Controller token module would be invoked with this code:
108
+
99
109
```yaml
100
110
- name: Create a new token using controller username/password
101
111
awx.awx.token:
@@ -109,26 +119,29 @@ Controller token module would be invoked with this code:
109
119
```
110
120
111
121
### Controller Export
122
+
112
123
The awx command line can export json that is compatable with this collection.
113
124
More details can be found [here](examples/configs_export_model/README.md)
114
125
115
-
### See Also:
126
+
### See Also
116
127
117
-
* [Ansible Using collections](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html) for more details.
128
+
-[Ansible Using collections](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html) for more details.
118
129
119
130
## Release and Upgrade Notes
131
+
120
132
For details on changes between versions, please see [the changelog for this collection](CHANGELOG.rst).
121
133
122
134
## Roadmap
135
+
123
136
Adding the ability to use direct output from the awx export command in the roles along with the current data model.
124
137
125
138
## Contributing to this collection
126
139
127
-
We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the [Controller Configuration collection repository](https://github.com/redhat-cop/tower_configuration).
128
-
More information about contributing can be found in our [Contribution Guidelines.](https://github.com/redhat-cop/tower_configuration/blob/devel/.github/CONTRIBUTING.md)
140
+
We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the [Controller Configuration collection repository](https://github.com/redhat-cop/controller_configuration).
141
+
More information about contributing can be found in our [Contribution Guidelines.](https://github.com/redhat-cop/controller_configuration/blob/devel/.github/CONTRIBUTING.md)
129
142
130
143
## Licensing
131
144
132
145
GNU General Public License v3.0 or later.
133
146
134
-
See [LICENCE](https://www.gnu.org/licenses/gpl-3.0.txt) to see the full text.
147
+
See [LICENSE](https://www.gnu.org/licenses/gpl-3.0.txt) to see the full text.
Copy file name to clipboardExpand all lines: docs/CONVERSION_GUIDE.md
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
# Red Hat Communties of Practice Controller Configuration Collection Conversion Guide
2
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.
3
+
## REQUIREMENTS
4
+
5
+
The AWX.AWX OR ANSIBLE.CONTROLLER collections MUST be installed in order for this collection to work. It is recommended they be invoked in the playbook in the following way.
5
6
6
7
## Using this collection
8
+
7
9
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
10
9
11
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.
@@ -19,9 +21,10 @@ Otherwise it will look for the modules only in your base installation. If there
19
21
- redhat_cop.controller_configuration
20
22
```
21
23
22
-
# Variable name changes
24
+
## Variable name changes
23
25
24
26
### Major Variable names changed
27
+
25
28
The Following Variables need to be changed:
26
29
|Tower Variable Name|Controller Variable Name|
27
30
|:---:|:---:|
@@ -54,6 +57,7 @@ The Following Variables need to be changed:
Copy file name to clipboardExpand all lines: docs/STANDARDS.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2
-
##Contributor's Guidelines
2
+
# Contributor's Guidelines
3
3
4
4
- All YAML files named with '.yml' extension
5
5
- Use spaces around jinja variables. {{ var }} over {{var}}
@@ -10,4 +10,4 @@
10
10
- Paths - When defining paths, do not include trailing slashes (e.g. my_path: /foo not my_path: /foo/). When concatenating paths, follow the same convention (e.g. {{ my_path }}/bar not {{ my_path }}bar)
11
11
- Indentation - Use 2 spaces for each indent
12
12
-`vars/` vs `defaults/` - if you have variables that don't need to change or be overridden by user, put those in `vars/` and those that a user would likely override, put those under `defaults/` directory.
13
-
- All playbooks/roles should be focused on compatibility with Ansible Tower
13
+
- All playbooks/roles should be focused on compatibility with Automation Controller
Copy file name to clipboardExpand all lines: examples/configs_export_model/README.md
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,29 @@
1
-
# Ansible Tower Export Documentation
1
+
# Automation Controller Export Documentation
2
2
3
3
## Description
4
-
This is documentation on how to use a the Tower export commands in development.
5
4
6
-
This command for awx allows you to export all available endpoints for tower for use in import, use in your own templates, for backup and many other uses.
5
+
This is documentation on how to use a the Automation Controller export commands in development.
6
+
7
+
This command allows exporting all available endpoints for Automation Controller for use in importing, templates, backups and many other uses.
0 commit comments