Skip to content
javi-cortesPublic

About

Linux setup environment automation

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

71 Commits

Folders and files

Repository files navigation

Ansible development environment

Ansible playbook to install and configure my dev env on Ubuntu.

This playbook installs i3-gaps and some additional tools to provide a complete i3 environment.

Features

This Ansible role installs the following components:

Usage

Clone repo and run the playbook:

ansible-playbook playbook.yml -i hosts -e action=install -e sym_links=true -K

This repo contains ssh private keys encrypted with ansible-vault. By default are disabled, if you want to add them or create your own set add_ssh_pkeys to true and encrypt your own.

ansible-playbook playbook.yml -i hosts -e action=install -e add_ssh_pkeys=true -K

Encrypting pkeys example:

You'll need a password in the host that executes ansible and encrypt the private keys with that.

touch ~/.ansible.cfg

# set the following content
[defaults]
vault_password_file=/path/to/your/vault_secret.sh

# After that set the password in /path/to/your/vault_secret.sh, e.g.:
#!/bin/bash
echo yourpassword

chmod +x vault_secret.sh

# Run encrypt

ansible-vault encrypt path/to/my/pkeys/id_rsa*

Testing your playbook with Vagrant

To Ansible playbook can be tested with Vagrant:

vagrant up --provision

Once the VM is running you can use the following to run ansible anytime:

vagrant provision

TODO

About

Linux setup environment automation

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages