Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gjbianco/ansible-ace
Lab that corresponds with the ACE Ansible presentation.
https://github.com/gjbianco/ansible-ace
Last synced: about 1 month ago
JSON representation
Lab that corresponds with the ACE Ansible presentation.
- Host: GitHub
- URL: https://github.com/gjbianco/ansible-ace
- Owner: gjbianco
- Created: 2018-06-19T14:08:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T14:42:18.000Z (about 6 years ago)
- Last Synced: 2024-12-09T12:57:33.823Z (about 1 month ago)
- Homepage: http://bit.ly/ansible-guy
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible ACE Seed Project
Use this seed project to start writing your playbooks.
## Goal
Your playbook should do the following:
- Installs Apache (package: httpd)
- Starts Apache (service: httpd)
- Opens the port in the firewall
- Adds an index.html to `/var/www/html/`You'll know it works if you can go to `ace-.guy.sh`.
BONUS:
Make your playbook idempotent. An easy way to check if your playbook is idempotent is to run it again and make sure there are no changes (`changed: 0`).
## Setup
1. Install Ansible
- On RHEL/Fedora/CentOS, run `sudo yum install ansible`
- On MacOS, use Homebrew
2. After cloning this project, you'll need to set the permissions on the private key file (id_rsa).
- Run `chmod 600 id_rsa`
3. Test Ansible can connect to your remote machine (after you populate your `hosts` file.
- Run `ansible all -m ping` (you should get a successful "pong").
- You should get prompted for a SUDO password AND a passphrase for the key (this will be provided in person).