Coder Social home page Coder Social logo

kaweees / ansible Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 448 KB

My ansible playbook collection that has been written for setting up a Debian 12 (bookworm) Linux machine

Home Page: https://miguelvf.dev/blog/ansible

License: GNU General Public License v3.0

Dockerfile 42.62% Shell 57.38%
ansible ansible-galaxy ansible-playbook ansible-role debian

ansible's Introduction

Contributors Forks Stargazers

Text changing depending on mode. Light: 'Ansible Logo Light Mode' Dark: 'Ansible Logo Dark Mode'

~ansible

This playbook installs most of the software I use on my Linux machine for software development. This is a work-in-progress, and things will probably change as the sands of time flow.

Built With

Ansible

Getting Started

To get a local copy of the project up and running on your machine, follow these simple steps:

Installation

It is best to run this playbook remotely, as it is designed to be executed on a fresh install of Linux. To do so, run the following commands:

  1. Add your user to the sudoers group
    # execute the following commands from root
    apt install -y sudo curl
    sudo usermod -aG sudo <username>
  2. Execute the ansible-install script
    bash < <(curl -s https://raw.githubusercontent.com/Kaweees/ansible/main/ansible-install)
  3. Start and enable NetworkManager
    sudo systemctl start NetworkManager #.service
    sudo systemctl enable NetworkManager #.service

Enter your machine's password when prompted by Ansible.

Usage

Running

Testing

Testing this playbook locally can be done by following the steps below:

  1. Clone the repository
     git clone https://github.com/Kaweees/ansible.git
     cd ansible
  2. Install Ansible via pip
    pip install ansible
  3. Install Molecule with Docker support via pip
    pip install molecule[docker]
  4. Initialize a Molecule scenario locally with Docker as the driver
    molecule init scenario -r local -d docker
  5. Run the Molecule tests with the initialized scenario
    molecule test

Roadmap

See the [open issues](

Project Structure

. ansible/
├── .ssh/                     - ssh configuration files
├── auth_codes/               - auth codes for various services
├── meta/                     - metadata regarding this project for Ansible Galaxy
├── molecule/                 - molecule tests
│   └── default/              - default molecule scenario
│       ├── converge.yml      - main ansible playbook
│       ├── molecule.yml      - molecule configuration
│       └── verify.yml        - molecule verification
├── tasks/                    - various ansible tasks
├── vars/                     - various ansible variables
├── .ansible-lint             - ansible-lint configuration
├── .editorconfig             - editorconfig configuration
├── .yamllint                 - yamllint configuration
├── Dockerfile                - dockerfile for molecule tests
├── README.md                 - you are here
├── ansible-install           - entry point that install ansible and runs the playbook
├── local.yml                 - ansible playbook to run locally
└── nvim.Dockerfile           - dockerfile for neovim

License

My ansible scripts are distributed under the terms of the GNU General Public License v3.0, as I firmly believe that collaborating on free and open-source software fosters innovations that mutually and equitably beneficial to both collaborators and users alike. See LICENSE for details and more information.

ansible's People

Contributors

imgbotapp avatar kaweees avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.