Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create aap-setup #5

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions aap-setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# ansible-galaxy collection install redhat_cop.controller_configuration

---
- name: Setup MOVEit demo
hosts: localhost
gather_facts: false

tasks:
- name: Default Components
ansible.builtin.include_role:
name: "{{ item }}"
loop: "{{ controller_components }}"
vars:
controller_components:
- job_templates
- controller_projects

controller_organizations:
- name: Default

controller_projects:
- name: MOVEit repository
organization: Default
scm_branch: main
scm_clean: 'no'
scm_delete_on_update: 'no'
scm_type: git
scm_update_on_launch: 'no'
scm_url: https://github.com/KushGuptaRH/MOVEit-Response.git

controller_templates:
- name: "Detect Windows and MOVEit Servers"
job_type: run
inventory: 'Workshop Inventory'
project: 'MOVEit repository'
playbook: 'check-server.yml'
execution_environment: Default execution environment
survey_enabled: true
survey:
name: ''
description: ''
spec:
- question_name: 'Enter a path to check only if NOT in the default C:\Program Files\'
type: text
variable: MOVEit_path
required: false

- name: Print Message
ansible.builtin.debug:
msg: "{{ user_message }}"
when: user_message is defined