Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tech_notes:ansible [2024-03-13 Wed wk11 20:53] – baumkp | tech_notes:ansible [2024-03-13 Wed wk11 21:19] (current) – [ansible] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
======ansible====== | ======ansible====== | ||
+ | *'' | ||
+ | *Create a file ansible.cfg in your current folder with the following contents: | ||
+ | < | ||
+ | host_key_checking = false</ | ||
*create password less login to remote machines | *create password less login to remote machines | ||
*'' | *'' | ||
Line 7: | Line 11: | ||
*'' | *'' | ||
*'' | *'' | ||
- | *ansible all -m gather_facts -i inventory.ini --tree / | + | *'' |
- | *ansible all -i inventory.ini -m ping -u root | + | *'' |
- | *ansible -i inventroy.ini kpts -a "ls -la ~" -u root | + | *'' |
- | *ansible all -a "df -h" -u root | + | *'' |
+ | *'' | ||
- | *crontab -l | + | *'' |
- | *5 4 * * 6 ansible-playbook / | + | *'' |
- | I should check about setting up ansible to save some time maintaining my servers. | + | ====Resources==== |
*[[https:// | *[[https:// | ||
*[[https:// | *[[https:// | ||
*[[https:// | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
---- | ---- | ||
<- tech_notes: | <- tech_notes: |