My adventure with Ansible.
Go to file
James Tombleson 76444888a8
Merge pull request #6 from luther38/role-updates
Role updates
2019-05-14 12:18:11 -07:00
jenkins Starting to have Jenkins run jobs 2019-05-14 10:51:24 -07:00
playbook Adjusted cfg. Changed hosts on Winlogbeat. POC for Jenkins is working 2019-05-14 08:54:40 -07:00
roles renamed roles 2019-05-07 15:21:33 -07:00
.gitignore changed the cfg to look for hosts.d for host entries 2019-05-14 07:46:35 -07:00
README.md renamed roles 2019-05-07 15:21:33 -07:00
ansible.cfg Adjusted cfg. Changed hosts on Winlogbeat. POC for Jenkins is working 2019-05-14 08:54:40 -07:00
hosts.template update inventory template 2019-04-17 11:46:45 -07:00

README.md

Ansible

This repo contains my configuration and setup for my ansible use. Use at your own risk.

Installers

New hosts

Linux

wget https://github.com/luther38/Ansible/blob/master/scripts/installAnsible.sh
chmod 777 installAnsible.sh
./installOpenSSH.sh

Windows

$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"
$file = "$env:temp\ConfigureRemotingForAnsible.ps1"
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)
powershell.exe -ExecutionPolicy ByPass -File $file

Configuration

I have a basic configuration file in place at the root of this folder for anisble to find. If you work out of this directory the configuration file will take effect that is loaded.

Inventory

I have a template file in place that should only be used as a reference. Make a copy of that file and name it hosts then update that file.

The configuration file that is active is looking for a directory that contains all of the inventory files. This way all files can be parted out rather then one big file.

Testing Linux devices

ansible linux -i hosts -m ping

Testing Windows devices

ansible windows -i hosts -m win_ping

Unit Testing

Still in the works