nomad/ansible
Wojtek Bednarzak 0c739d4e24
ansible: Deploy nomad jobs using ansible
This is an untested change because I don't have the same environment as
Redbrick, but I think it would be beneficial to deploy the jobs using
Ansible. This means that it can be automated in the future.

One drawback of this approach is that we don't plan ahead of time, but
that should be done as part of a pull request anyways.
2023-03-22 23:35:45 +00:00
..
bin update permissions 2023-03-18 13:13:16 +00:00
group_vars ansible: Deploy nomad jobs using ansible 2023-03-22 23:35:45 +00:00
roles ansible: Deploy nomad jobs using ansible 2023-03-22 23:35:45 +00:00
templates update ansible roles 2023-03-18 14:04:55 +00:00
hosts.sample update permissions 2023-03-18 13:13:16 +00:00
README.md update permissions 2023-03-18 13:13:16 +00:00
redbrick-ansible.yml update permissions 2023-03-18 13:13:16 +00:00

Redbrick Ansible Playbook

To run various roles, make sure you edit the redbrick-ansible.yml playbook and comment out whatever roles you do not want to run.

This playbook is supposed to used as a starting base, extend or modify it as you see fit. I would suggest you create a copy of it and add that file to the .gitignore file so that you're not constantly reverting your changes.

Running

Below is an example of how to run this playbook:

$ ansible-playbook -i hosts redbrick-ansible.yml

This command assumes hosts is your hosts file, you can copy the sample host file and modify the credentials in group_vars

Contributing

Please add all roles into the roles directory, following the same directory structure.

You should also add the role and a small description of what it does into redbrick-ansible.yml, this is to make it easier to run commands and modify the playbook at a glance.

If you have any questions, please mail/ping distro in Redbrick.