Skip to content

Commit

Permalink
chris being helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
l3acon committed Jan 31, 2025
1 parent 06965e5 commit 1917f23
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloud/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ controller_templates:
- question_name: Specify target instance type
type: text
variable: instance_type
default: t3a.medium
required: true


- name: Cloud / AWS / Restore EC2 from Snapshot
job_type: run
organization: Default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
block:
- name: AWS | RESIZE EC2 | assert required vars
ansible.builtin.assert:
that:
that:
- instance_id is defined
- aws_region is defined
fail_msg: "instance_id, aws_region is required for resize operations"
Expand Down
15 changes: 15 additions & 0 deletions linux/disa_stig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: Apply compliance profile
hosts: "{{ _hosts | default(omit) }}"
become: true
vars:
compliance_profile: undef

tasks:
- name: Check os type
ansible.builtin.assert:
that: "ansible_os_family == 'RedHat'"

- name: Run Compliance Profile
ansible.builtin.include_role:
name: "demo.compliance.rhel{{ ansible_distribution_major_version }}STIG"
22 changes: 22 additions & 0 deletions linux/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,28 @@ controller_templates:
variable: _hosts
required: true

- name: "LINUX / DISA STIG"
job_type: run
inventory: "Demo Inventory"
project: "Ansible Product Demos"
playbook: "linux/disa_stig.yml"
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
credentials:
- "Demo Credential"
extra_vars:
sudo_remove_nopasswd: false
survey_enabled: true
survey:
name: ''
description: ''
spec:
- question_name: Server Name or Pattern
type: text
variable: _hosts
required: true

- name: "LINUX / Multi-profile Compliance"
job_type: run
inventory: "Demo Inventory"
Expand Down

0 comments on commit 1917f23

Please sign in to comment.