This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# perform a fresh install of Ubuntu 17.10 | |
# upgrade the kernel to v4.13.10 | |
mkdir ~/kernel-v4.13.10 | |
cd ~/kernel-v4.13.10 | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310_4.13.10-041310.201710270531_all.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-image-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
sudo dpkg -i *.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# configure scroll speed for Magic Mouse | |
echo 'options hid_magicmouse scroll-speed=55 scroll-acceleration=0 emulate_3button=0' | sudo tee /etc/modprobe.d/hid_magicmouse.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Java 8 JDK | |
sudo apt-get install openjdk-8-jdk | |
# install pip | |
sudo apt-get install python-pip | |
# install AWS CLI | |
pip install awscli --user | |
# add the following to ~/.bashrc: export PATH="~/.local/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example-inventory.ini | |
[db] | |
db.dev.ansibled | |
[api] | |
api.dev.ansibled | |
[webapp] | |
app.dev.ansibled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# group_vars/project.ansibled.yml | |
project: ansibled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example-inventory.ini | |
[db] | |
db.dev.ansibled | |
db.dev.moreansible | |
db.staging.ansibled | |
[api] | |
api.dev.ansibled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: db | |
tasks: | |
- name: generate a connection details file from template | |
template: | |
src: files/db/{{ db_name }}-connection.json.j2 | |
dest: temp/db/{{ db_name }}-connection.json | |
- name: create an S3 bucket | |
s3_bucket: | |
name: "{{ db_connection_bucket }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# imagining we have some hosts defined in an `elasticsearch` group | |
- hosts: elasticsearch | |
tasks: | |
# `when` allows us to define a condition that has to be true for this task to run | |
# in this case, it is including another list of tasks to execute using `include_tasks` | |
- name: do some sort of required setup | |
include_tasks: tasks/setup.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hosts.inventory | |
[vpc] | |
vpc.ansibled | |
[project.ansibled:children] | |
vpc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# group_vars/all.yml | |
# --- | |
# global definitions, not too much to go here... | |
# specify to run Ansible for hosts locally by default, not over SSH | |
ansible_connection: local |
OlderNewer