panda 2d68ed58a1 updated compose version | 3 лет назад | |
---|---|---|
debug | 4 лет назад | |
keys | 4 лет назад | |
repo | 4 лет назад | |
roles | 3 лет назад | |
README.md | 3 лет назад | |
common.yml | 3 лет назад | |
docker.yml | 4 лет назад | |
hosts | 4 лет назад | |
lldp.yml | 4 лет назад | |
singularity.yml | 4 лет назад | |
telegraf.yml | 4 лет назад | |
tincvpn.yml | 4 лет назад | |
to_add.txt | 4 лет назад | |
tor.yml | 4 лет назад | |
transmission.yml | 4 лет назад | |
variables.yml | 3 лет назад |
I've tested the playbooks mainly on Debian 9,10,11 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