| | |
| | | |
| | | - name: Retrieve default organization ID |
| | | uri: |
| | | url: "https://localhost/api/v2/organizations/?name=Default" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/organizations/?name=Default" |
| | | method: GET |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Retrieve default inventory ID |
| | | uri: |
| | | url: "https://localhost/api/v2/inventories/?name=Default+inventory" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/inventories/?name=Default+inventory" |
| | | method: GET |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Create GitLab credentials |
| | | uri: |
| | | url: "https://localhost/api/v2/credentials/" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/credentials/" |
| | | method: POST |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Retrieve credentials ID |
| | | uri: |
| | | url: "https://localhost/api/v2/credentials/?name=GitLab" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/credentials/?name=GitLab" |
| | | method: GET |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Create DevOps credentials |
| | | uri: |
| | | url: "https://localhost/api/v2/credentials/" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/credentials/" |
| | | method: POST |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Retrieve credentials ID |
| | | uri: |
| | | url: "https://localhost/api/v2/credentials/?name=DevOps" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/credentials/?name=DevOps" |
| | | method: GET |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Create Tower credentials |
| | | uri: |
| | | url: "https://localhost/api/v2/credentials/" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/credentials/" |
| | | method: POST |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Create Git projects |
| | | uri: |
| | | url: "https://localhost/api/v2/projects/" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/projects/" |
| | | method: POST |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Retrieve projects ID |
| | | uri: |
| | | url: "https://localhost/api/v2/projects/?name={{ item }}+repository" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/projects/?name={{ item }}+repository" |
| | | method: GET |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |
| | |
| | | |
| | | - name: Create job templates |
| | | uri: |
| | | url: "https://localhost/api/v2/job_templates/" |
| | | url: "https://tower.{{zone_internal_dns}}/api/v2/job_templates/" |
| | | method: POST |
| | | user: admin |
| | | password: "{{ tower_admin_password }}" |