2020-03-13 20:05:35 +01:00
|
|
|
PREREQUISITES:
|
|
|
|
|
|
|
|
apt-get install -y ansible
|
|
|
|
|
|
|
|
echo "[thismachine]" >> /etc/ansible/hosts
|
|
|
|
echo "127.0.0.1" >> /etc/ansible/hosts
|
|
|
|
|
|
|
|
|
|
|
|
SETUP:
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
RUN DEFAULTS:
|
|
|
|
|
|
|
|
ansible-playbook common.yml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|