panda b836975a96 fixed sysctl swappiness | 3 年之前 | |
---|---|---|
debug | 4 年之前 | |
keys | 4 年之前 | |
repo | 4 年之前 | |
roles | 3 年之前 | |
README.md | 4 年之前 | |
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 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