commit ebe4cf126e3d88a35e3b677026952b46206386cc Author: Haldrup-tech Date: Wed Aug 7 13:33:52 2024 -0400 first commit diff --git a/ferris.png b/ferris.png new file mode 100644 index 0000000..8741baa Binary files /dev/null and b/ferris.png differ diff --git a/test.md b/test.md new file mode 100644 index 0000000..a0ff0ff --- /dev/null +++ b/test.md @@ -0,0 +1,96 @@ +# Insta# Installing Ansible AAP Content# Installing Ansible AAP Content + +## Prerequisites + +1. **Ansible Controller**: Ensure you have an Ansible controller set up. +2. **WinSCP**: Ensure WinSCP is installed on your local machine. +3. **Shell Script**: Have the shell script ready for transfer. +4. **Ansible AAP Web Interface**: Ensure you have access to the Ansible AAP web interface. + +## Step 1: Verify Credentials on the Ansible AAP Web Interface + +1. **Log in to the Ansible AAP Web Interface**: + - Open your web browser and navigate to the Ansible AAP web interface URL. + - Enter your username and password to log in. + +2. **Verify Credentials**: + - Ensure that you can successfully log in with your credentials. + - If you encounter issues logging in, especially if the build is old, you may need to update your Ansible AAP installation or contact your administrator for assistance. + +> **Warning**: If you are unable to log in due to an old build, please update your Ansible AAP installation or contact your administrator before proceeding with the following steps. + +## Step 2: Transfer the Shell Script to the Ansible Controller + +1. **Open WinSCP**: + - Start WinSCP and enter the hostname (or IP address) of your Ansible controller. + - Enter your username and password for the Ansible controller. + - Click 'Login'. + +![WinSCP Login](./ferris.png) + +2. **Transfer the Script**: + - In the WinSCP interface, navigate to the location of your shell script on your local machine. + - On the remote side (Ansible controller), navigate to the directory where you want to place the script. + - Drag and drop the shell script from your local machine to the remote directory. + ![WinSCP Transfer](path_to_your_image/winscp_transfer.png) + +## Step 3: Connect to the Ansible Controller via SSH + +1. **Open an SSH Client**: + - Use an SSH client like PuTTY, or open a terminal if you are using a Unix-based system. + +2. **Connect to the Ansible Controller**: + - Enter the command to connect to your Ansible controller: + ```sh + ssh username@ansible_controller_ip + ``` + - Replace `username` with your actual username and `ansible_controller_ip` with the IP address of your Ansible controller. + - Enter your password when prompted. + +## Step 4: Run the Shell Script + +1. **Navigate to the Script Directory**: + - Once connected, navigate to the directory where you placed the shell script: + ```sh + cd /path/to/script + ``` + +2. **Make the Script Executable**: + - Change the permissions of the script to make it executable: + ```sh + chmod +x your_script.sh + ``` + +3. **Execute the Script**: + - Run the script: + ```sh + ./your_script.sh + ``` + +## Example Shell Script + +Here is an example of what your shell script (`your_script.sh`) might look like: + +```sh +#!/bin/bash + +# Update package lists +sudo apt-get update + +# Install Ansible if not already installed +if ! command -v ansible &> /dev/null +then + echo "Ansible not found, installing..." + sudo apt-get install -y ansible +else + echo "Ansible is already installed" +fi + +# Additional commands to set up Ansible AAP content +# Example: Clone a repository +git clone https://github.com/example/ansible-aap-content.git /etc/ansible/aap-content + +# Example: Run an Ansible playbook +ansible-playbook /etc/ansible/aap-content/setup.yml + +echo "Ansible AAP content installation completed." diff --git a/testyaml.md b/testyaml.md new file mode 100644 index 0000000..595a447 --- /dev/null +++ b/testyaml.md @@ -0,0 +1,23 @@ +# YAML Template Layou + +## Head of Yaml File + +Here is the head of the Yaml File + +```yaml +--- +name: Windows Template +hosts: windows +vars: + example_var: 'test' +tasks: + +- name: Task 1 + win_ping: + register: result + +- name: Set Facts + set_fact: + example_fact: "{{ result }}" + +```