My adventure with Ansible.
Go to file
James Tombleson fad12ff06d Did some cleanup
Added heartbeat role
moved scripts to LinuxHelpers repo
Moved old config files to the roles for archive.
2019-05-06 15:50:26 -07:00
.vagrant Added Roles 2019-04-29 16:08:04 -07:00
playbook Did some cleanup 2019-05-06 15:50:26 -07:00
roles Did some cleanup 2019-05-06 15:50:26 -07:00
.gitignore Updated configs 2019-04-25 09:29:45 -07:00
README.md Changes! 2019-04-18 11:19:08 -07:00
ansible.cfg Updated cfg and added a ansible-pull script 2019-05-03 08:23:42 -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.

Inventory

I have a template file in place that should only be used as a refrence. Make a copy of that file and name it hosts then update that 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