• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language Jinja
  • Created over 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ansible playbooks for Fedora

Fedora - Ansible Contrib Repository

This repository contains user-contributed real world examples for Ansible playbooks, especially for Fedora and its downstream (RHEL), as well as modules that are not a part of Ansible's core distribution.

This is designed to be a resource to folks learning configuring Fedora with Ansible, as well as a way to share useful resources of all kinds.

If you have just found Ansible or Fedora, you should start here:

A lot of playbooks in this repository are made and used with the Fedora Security Lab and the Fedora Security Lab Test bench. For all security-related playbooks please check the Fedora Security Lab Test bench git repository.

Prerequisites

The setup of Ansible is explained on the Ansible Getting Started page. Here is only the setup of the managed nodes covered. For every system you want to manage, you need to have the client's SSH key in the authorized_keys file of the management system and Python.

Make sure that Python is installed. If not, install the Python package.

$ sudo dnf -y install python

Add the SSH key to the authorized_keys file.

From the managed node:

$ ssh root@[IP address of your management system] 'cat ~/.ssh/id_rsa.pub' | cat - >> ~/.ssh/authorized_keys

From the management system:

$ sudo ssh-copy-id -i /root/.ssh/id_rsa.pub root@[IP address of your managed node]

Structure

At the moment the structure of the repository looks like this:

.
├── files ----------- Template files
├── handlers -------- Handlers for Fedora services
├── maintenance ----- Complete playbooks
├── maintenance.yml - Regular tasks to perform on a running system
├── modules --------- Modules especially for Fedora
├── README.md ------- This files
├── tasks ----------- A collection of tasks
├── setup.yml ------- Collected tasks for a fresh installed system
└── variables ------- Storage files for variables

Warning

Think first before you implement stuff from this repository. Consider the playbooks in this repository as a show case. Somethings doesn't make sense, are nasty hacks, or easier to do with another approach.

Licensing

Examples and modules should be licensed GPLv3 per the rest of Ansible, to encourage modules to graduate from contrib to core.

All playbook content is assumed to be Creative Commons 3.0 Attribution licensed. Non-commerical or No-derivatives CC extensions are not acceptable, to encourage easy use by all users, regardless of purpose.

More Repositories

1

mqtt-panel

A web interface for MQTT
JavaScript
404
star
2

nix-security-box

Tool set for Information security professionals and all others
Nix
182
star
3

alpine-ansible

Alpine Linux - Ansible Contrib Repository
Jinja
31
star
4

security-lab

Fedora Security Lab - The Fedora Security Lab (FSL) provides a safe test environment to work on security auditing, forensics, system rescue and teaching security testing methodologies in universities and other organizations. This repository is a copy of the original development.
JavaScript
29
star
5

fsl-test-bench

FSL Test bench - Ansible playbook repository to setup a save environment for security auditing and testing. It can be used for teaching security testing methodologies, testing tools, learning, and playing.
Jinja
25
star
6

make_centos

Create customized CentOS ISO images
Shell
16
star
7

mqtt-randompub

A publisher for random MQTT message to random topics.
Python
8
star
8

mqtt-dbus

Desktop notifications with Python DBus bindings if a MQTT message arrives
Python
7
star
9

penin

Information gathering and penetration testing framework
Python
3
star
10

pysysbot

Python based system jabber bot
Python
3
star
11

mqtt-notify

Desktop notifications with libnotify if a MQTT message arrives
Python
2
star
12

zerotier-client

A Python client wrapper for the ZeroTier API
Python
2
star
13

ch.bfh.bti7081.s2013.white

Software Engineering and Design - Group White
Java
1
star
14

mqtt-zenity

Desktop notifications with zenity if a MQTT message arrives
Shell
1
star
15

simpserial

A very simple tool to get data from serial ports
Python
1
star
16

set-bridge

Simple script to create a bridge for wire-tapping
Shell
1
star