panda b836975a96 fixed sysctl swappiness | před 3 roky | |
---|---|---|
debug | před 4 roky | |
keys | před 4 roky | |
repo | před 4 roky | |
roles | před 3 roky | |
README.md | před 4 roky | |
common.yml | před 3 roky | |
docker.yml | před 4 roky | |
hosts | před 4 roky | |
lldp.yml | před 4 roky | |
singularity.yml | před 4 roky | |
telegraf.yml | před 4 roky | |
tincvpn.yml | před 4 roky | |
to_add.txt | před 4 roky | |
tor.yml | před 4 roky | |
transmission.yml | před 4 roky | |
variables.yml | před 3 roky |
I've tested the playbooks mainly on Debian 9 and ubuntu (server) 18.04 LTS running as root, on Ubuntu (Desktop) 19.04 running ad user. I've started converting the roles to distinguish between OSes but it's incomplete.
install ansible:
apt-get install -y ansible
add hosts lines to ansible:
echo "[thismachine]" >> /etc/ansible/hosts
echo "127.0.0.1" >> /etc/ansible/hosts
you have to change at least 2 variables:
which by default are set to "CHANGEME" anche the playbook is set to fail if these are set to CHANGEME
insert your user in:
variables.yml
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:
ansible-playbook common.yml
or if you are running as non-root:
sudo ansible-playbook common.yml
this playbok will:
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