Ansible: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== What is Ansible? == | == What is Ansible? == | ||
Ansible is a Python based automation tool put together by Red Hat. | Ansible is a Python based automation tool put together by Red Hat. The project can be found [https://www.ansible.com/ here]. | ||
== Where is it being used? == | == Where is it being used? == | ||
Line 7: | Line 7: | ||
The source code for the ansible playbooks can be found [https://github.com/allhandsactive/ansible here]. | The source code for the ansible playbooks can be found [https://github.com/allhandsactive/ansible here]. | ||
=== | === 3D Printers === | ||
Currently, Ansible is being used at AHA to update the Raspberry Pi machines for the 3D printers. | Currently, Ansible is being used at AHA to update the Raspberry Pi machines for the 3D printers. | ||
== How do I use the scripts? == | |||
=== SSH Keys === | |||
A copy of your SSH public key needs to be placed in '''/home/pi/.ssh/authorized_keys''' | |||
=== Running the script === | |||
To run the script do the following: | |||
1) Download the yaml and ini files | |||
2) Run '''ansible-playbook -i servers.ini 3dprinter-update.yaml -b --ask-become-pass''', making sure the file path to '''servers.ini''' and '''3dprinter-update.yaml''' files are correct. | |||
3) Wait. You should get a command prompt when finished. | |||
== Questions? == | |||
Contact Victoria. She is vdsw on Element. | |||
[[Category: Infrastructure]] |
Latest revision as of 19:35, 8 February 2024
What is Ansible?
Ansible is a Python based automation tool put together by Red Hat. The project can be found here.
Where is it being used?
The source code for the ansible playbooks can be found here.
3D Printers
Currently, Ansible is being used at AHA to update the Raspberry Pi machines for the 3D printers.
How do I use the scripts?
SSH Keys
A copy of your SSH public key needs to be placed in /home/pi/.ssh/authorized_keys
Running the script
To run the script do the following:
1) Download the yaml and ini files
2) Run ansible-playbook -i servers.ini 3dprinter-update.yaml -b --ask-become-pass, making sure the file path to servers.ini and 3dprinter-update.yaml files are correct.
3) Wait. You should get a command prompt when finished.
Questions?
Contact Victoria. She is vdsw on Element.