Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Fedora Infrastructure Ansible Automation

License: GPL v3 status: active SemVer

This repository contains Ansible playbooks to configure Fedora workstations and servers.

Table of Contents

Getting Started

Prerequisites

  • Task
  • Python 3
  • pip for Python 3

Installation

Set up the environment and install dependencies:

task setup

This will create a Python virtual environment in .venv and install the necessary Ansible and linting dependencies from requirements.txt.

Usage

To run a playbook, use the task deploy-workstation or task deploy-server commands. You can specify the environment (dev, stage, or prod) by setting the ENV variable. The default environment is dev.

Workstation

# Deploy to a workstation in the 'dev' environment
task deploy-workstation

# Deploy to a workstation in the 'stage' environment
task deploy-workstation ENV=stage

Server

# Deploy to a server in the 'dev' environment
task deploy-server

# Deploy to a server in the 'prod' environment
task deploy-server ENV=prod

Development

Linting

To lint the Ansible code, run:

task lint

Testing

This project uses Molecule to test the Ansible roles. The tests are located in the molecule/ directory within each role.

To run all tests:

task test:all

To run tests for a specific role (e.g., base-system):

task test:base-system

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a pull request.

Author

  • Alistair Y. Lewars

Project Structure

  • docs/: Contains documentation for the project.
  • inventory/: Contains the Ansible inventory files for different environments (dev, stage, prod).
  • playbooks/: Contains the Ansible playbooks for configuring servers and workstations.
  • roles/: Contains the Ansible roles used by the playbooks.
  • Taskfile.yml: Contains the Task definitions for the project.
  • requirements.txt: Contains the Python dependencies for the project.
  • ansible.cfg: Contains the Ansible configuration for the project.
  • LICENSE: Contains the license for the project.
  • README.md: Contains the documentation for the project.

Project Goals

The goal of this project is to provide a simple and effective way to configure Fedora workstations and servers using Ansible. This project aims to be a starting point for anyone who wants to automate their Fedora infrastructure.

Reporting Bugs

Please report any bugs or issues on the GitHub Issues page.

Getting Help

If you have any questions or need help, please open a discussion on the GitHub Discussions page.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT.md for details.

Versioning

This project uses SemVer for versioning. For the versions available, see the tags on this repository.

Changelog

See the CHANGELOG.md file for details.

Roadmap

  • Add more roles for common services
  • Improve testing and CI/CD pipeline
  • Add support for other Linux distributions

Support

This is a community-supported project. For support, please open an issue or a discussion on the GitHub repository.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages