Skip to content

Instantly share code, notes, and snippets.

ARG EE_BASE_IMAGE="registry.redhat.io/ansible-automation-platform-26/de-minimal-rhel9:latest"
ARG PYCMD="/usr/bin/python3.11"
ARG PKGMGR_PRESERVE_CACHE=""
ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS=""
ARG ANSIBLE_GALAXY_CLI_ROLE_OPTS=""
ARG PKGMGR="/usr/bin/microdnf"
# Base build stage
FROM $EE_BASE_IMAGE as base
USER root
@brianaddicks
brianaddicks / github-devspaces.md
Last active April 9, 2025 20:20
Adding Github Extensions to Red Hat Dev Spaces
@brianaddicks
brianaddicks / palo_compare_stats.yml
Last active October 4, 2023 15:13
Compare arp/session/route tables between 2 PAs
---
- name: Add address objects to Palo Firewall
gather_facts: false
hosts: paloaltofirewall
connection: local
tasks:
- name: Set fact for PA provider
ansible.builtin.set_fact:
pa_provider:
@brianaddicks
brianaddicks / gist:c762f06638414f6a317040d72f660706
Created September 28, 2023 19:33
Retrieve rule from Palo Alto
---
- name: Get Rule facts
gather_facts: false
hosts: paloaltofirewall
connection: local
tasks:
- name: Set fact for PA provider
ansible.builtin.set_fact:
pa_provider:
@brianaddicks
brianaddicks / var_test.yml
Created July 20, 2023 14:46
Update a variable mid-playbook
---
- name: var test
hosts: localhost
connection: local
gather_facts: no
vars:
- model: 'model defined by vars'
tasks:
- name: debug 1

Azure AD SSO with SAML for AAP

This document will provide an example configuration for Azure AD SSO with SAML for Ansible Automation Platform. This method has a good bit more flexibility that the available Azure AD OAuth2 settings. All settings discussed below are found under Settings > SAML Settings in AAP. Setup of the Azure AD Enterprise Application config is not covered. Official AAP SAML Docs.

SAML Service Provider Entity ID

This is the unique ID used to identify AAP to Azure AD. Usually this is the URL of AAP. You'll need this when you setup the Enterprise Application in Azure AD.

Example

---
- name: Get computer from Hyper-V
gather_facts: false
hosts: scvmm
tasks:
# swap DNSHostName with desired property name
- name: Get computer from Hyper-V
ansible.windows.win_shell: |
$VMs = Get-SCVirtualMachine
---
- name: Deploy vcsa to ESX host
hosts: esxi
connection: local
gather_facts: no
tasks:
- name: Deploy VCSA OVF
community.vmware.vmware_deploy_ovf:
hostname: "{{ esxi_hostname }}"
username: "{{ esxi_username }}"
# Use environment variables
############################
# do this in your shell or add to your shell profile
export DEFAULT_SERIAL="/dev/cu.usbserial-ABCDEF"
# add the following config to ansible-navigator config file (multiple locations available https://ansible-navigator.readthedocs.io/en/latest/settings/)
execution-environment:
environment-variables:
pass:
#!/usr/bin/env bash
#---------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#---------------------------------------------------------------------------------------------
#
# Bash script to install the Azure CLI
#