Setup fresh server(s) to make it ready for Ansible.
It generates SSH Keys on local if not exists, copies to host, and install Python3.
apt-add-repository --yes --update ppa:ansible/ansible
apt install ansible
ansible --versionRun this command for single server
ansible-playbook -i some-host:host-port, --ask-pass init.ymlEnter server password when prompted.
Note: A
,(comma) after host/port is required
To init multiple servers then please setup the hosts (renamed from hosts.example) file in the following format
some-host-1:port ansible_password=host_root_password
some-host-2:port ansible_password=host_root_passwordThen run this command
ansible-playbook init.ymlInspired by prepare-ansible-hosts and ansible-init