peterchoo / workstation

Ansible to provision my workstation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Project: Workstation

"Weapons of War"

Prerequisites

  • Linux Machine (x86-64)
  • Python 3

Note: Ansible not required initially.

Quickstart

  1. Ensure you have met the above prerequisites, if not the controller role should prompt you for what needs installing.

  2. Create an env/ folder for your $(hostname), you can copy an existing one or create a new one. It needs to have the following structure:

    env/
      |_ group_vars/
      |    |_ all.yml
      |
      |_ inventory.yml
    
  3. Set your inventory to connect locally, a template example is as follows:

    ---
    
    all:
      hosts:
        localhost:
          ansible_connection: local
          ansible_python_interpreter: "{{ ansible_playbook_python }}"
    
    workstation:
      hosts:
        localhost:
  4. Ensure you configure the variables for each role in env/$(hostname)/group_vars/all.yml to meet your needs.

  5. You may fire when ready: ./bootstrap.sh

    • This will create a temporary virtualenv with the latest Ansible installed.
    • This repository will be configured with all the roles requested.
    • Each role will be run to acheive the desired outcome.

About

Ansible to provision my workstation


Languages

Language:Shell 86.8%Language:HTML 13.2%