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
# 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
# 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 | |
[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
# 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
# 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
# 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 |
NewerOlder