Ansible_PUBLIC/README.md

67 lines
1.5 KiB
Markdown
Raw Normal View History

2020-03-13 20:05:35 +01:00
PREREQUISITES:
2020-03-14 00:52:38 +01:00
install ansible:
apt-get install -y ansible
2020-03-13 20:05:35 +01:00
2020-03-14 00:52:38 +01:00
add hosts lines to ansible:
2020-03-13 20:05:35 +01:00
echo "[thismachine]" >> /etc/ansible/hosts
echo "127.0.0.1" >> /etc/ansible/hosts
SETUP:
you have to change at least 2 variables:
- users
- hostname
which by default are set to "CHANGEME" anche the playbook is set to fail if these are set to CHANGEME
2020-03-14 00:13:46 +01:00
insert your user in:
variables.yml
2020-03-13 20:05:35 +01:00
in the list:
users:
goofy
and their ssh keys in the folder
keys
in form of filename:
goofy.key.pub
and format:
ssh-rsa [/CUT] user@host
insert your hostname in
variables.yml
in the variable:
hostname:
2020-03-13 20:05:35 +01:00
RUN DEFAULTS:
ansible-playbook common.yml
2020-03-14 00:55:16 +01:00
RUN OPTIONALS:
2020-03-14 00:56:11 +01:00
- docker.yml : installs docker-ce and docker-compose (variable in variables.yml for latest of docker-compose)
2020-03-14 15:24:08 +01:00
- lldp.yml : installs and enables LLDP
2020-03-14 00:55:16 +01:00
- telegraf.yml
- tincvpn.yml
- transmission.yml
- singularity.yml : installs go and builds and installs singularity
2020-03-14 15:24:08 +01:00
- tor.yml : installs tor base from tor repo
VERSIONS:
2020-03-14 15:24:08 +01:00
- docker-compose:
-- variable: compose_ver
-- look here: https://github.com/docker/compose/releases/latest
- go:
-- variable: singularity_go_ver
-- look here: https://golang.org/dl/ , the package is like go1.14.linux-amd64.tar.gz and you take the "1.14"
- singularity:
-- varaible: singularity_ver
-- look here: https://github.com/sylabs/singularity/releases/latest
2020-03-13 20:05:35 +01:00
GIT PUSH:
git add --all
git commit -m "added things to readme"
git push -u origin master
or:
git add --all && git commit -m "message" && git push -u origin master