panda 545f925e65 disabled systemd_detect_virt due to issues | 2 months ago | |
---|---|---|
debug | 4 years ago | |
keys | 4 years ago | |
repo | 2 years ago | |
roles | 1 year ago | |
README.md | 8 months ago | |
common.yml | 2 months ago | |
docker.yml | 3 years ago | |
docker_host.yml | 2 years ago | |
hosts | 4 years ago | |
lldp.yml | 3 years ago | |
singularity.yml | 3 years ago | |
telegraf.yml | 3 years ago | |
tincvpn.yml | 3 years ago | |
to_add.txt | 4 years ago | |
tor.yml | 3 years ago | |
transmission.yml | 3 years ago | |
variables.yml | 2 years ago |
I've tested the playbooks on:
I've started converting the roles to distinguish between OSes but it's incomplete.
I'ts being tested also on LXC containers and I've added a skip of sysctl tasks when in a container. You can check the case by using: systemd-detect-virt none: baremetal kvm: vm (on Proxmox) lxc: container (on Proxmox)
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