Skip to content

Commit

Permalink
feat: add awx collection
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hermann-sva committed Jan 23, 2025
1 parent 8e0e315 commit f81b546
Show file tree
Hide file tree
Showing 8 changed files with 2,151 additions and 0 deletions.
648 changes: 648 additions & 0 deletions collections/awx/base.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions collections/awx/collection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: awx
namespace: sthings
84 changes: 84 additions & 0 deletions collections/awx/container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
playbooks:
- name: docker
play: |
---
- hosts: "{{ target_host | default('localhost') }}"
vars_files:
- "{{ path | default('.') }}/awx-local-env.yaml"
- "{{ path | default('.') }}/organization-sthings.yaml"
- "{{ path | default('.') }}/scm-creds-sthings.yaml"
- "{{ path | default('.') }}/projects-sthings.yaml"
- "{{ path | default('.') }}/machine-creds-sthings.yaml"
- "{{ path | default('.') }}/custom-credentials.yaml"
- "{{ path | default('.') }}/custom-credential-type.yaml"
- "{{ path | default('.') }}/dynamic-inventory-vsphere.yaml"
- "{{ path | default('.') }}/inventory-source.yaml"
- "{{ path | default('.') }}/ee-sthings.yaml"
- "{{ path | default('.') }}/job-docker.yaml"
- "{{ path | default('.') }}/survey-docker.yaml"
tasks:
- ansible.builtin.import_tasks: check_connection.yaml
- ansible.builtin.import_tasks: render_survey.yaml
- ansible.builtin.import_tasks: creation_tasks.yaml
- name: nerdctl
play: |
---
- hosts: "{{ target_host | default('localhost') }}"
vars_files:
- "{{ path | default('.') }}/awx-local-env.yaml"
- "{{ path | default('.') }}/organization-sthings.yaml"
- "{{ path | default('.') }}/scm-creds-sthings.yaml"
- "{{ path | default('.') }}/projects-sthings.yaml"
- "{{ path | default('.') }}/machine-creds-sthings.yaml"
- "{{ path | default('.') }}/custom-credentials.yaml"
- "{{ path | default('.') }}/custom-credential-type.yaml"
- "{{ path | default('.') }}/dynamic-inventory-vsphere.yaml"
- "{{ path | default('.') }}/inventory-source.yaml"
- "{{ path | default('.') }}/ee-sthings.yaml"
- "{{ path | default('.') }}/job-nerdctl.yaml"
- "{{ path | default('.') }}/survey-nerdctl.yaml"
tasks:
- ansible.builtin.import_tasks: check_connection.yaml
- ansible.builtin.import_tasks: render_survey.yaml
- ansible.builtin.import_tasks: creation_tasks.yaml
vars:
- name: job-nerdctl
file: |
---
job_templates:
stuttgartThings:
name: install-nerdctl
organization: stuttgart-things
inventory: dynamic-inventory-vsphere
project: stuttgart-things
playbook: plays/install-nerdctl.yaml
credentials: sthings-ssh
executionenv: sthings-ee
state: present
ask_verbosity_on_launch: true
survey_enabled: true
survey_spec: "{{ lookup('file', 'vars/rendered.json') }}"
- name: job-docker
file: |
---
job_templates:
stuttgartThings:
name: install-docker
organization: stuttgart-things
inventory: dynamic-inventory-vsphere
project: stuttgart-things
playbook: plays/install-docker.yaml
credentials: sthings-ssh
executionenv: sthings-ee
state: present
ask_verbosity_on_launch: true
survey_enabled: true
survey_spec: "{{ lookup('file', 'vars/rendered.json') }}"
Loading

0 comments on commit f81b546

Please sign in to comment.