This repository contains various scripts to setup and configure machines handled by OSM-FR association (a french association for OpenStreetMap). These scripts are used with ansible.
A version of ansible >= 2.3 is sufficient, and is available in Debian, or from git repository. To install all dependency on Debian, use:
apt-get install ansible python-jmespathTo install VM through proxmox, python promoxer module is necessary, It can be installed with:
sudo pip install proxmoxer- add the machine to file
hosts, in section[vm]if it is a virtual machine, at the top otherwise. - launch following command:
ansible-playbook -l <hostname> common.yml
- add the machine to file
hosts, in the relevant section[user] - if necessary, add the user to
roles/common/tasks/main.yml, with the public ssh key inpublic\_keys/<user> - launch following command:
ansible-playbook -l <hostname> common.yml --tags user_creation
- add the machine to file
hosts, in the relevant section[service] - launch following command:
ansible-playbook -l <hostname> <service>.yml