Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:ansible [2024/02/20 23:04] – [Install] darron | tools:ansible [2024/02/23 11:27] (current) – [Configuration] darron | ||
---|---|---|---|
Line 198: | Line 198: | ||
Install python3 on each host you wish to perform operations on | Install python3 on each host you wish to perform operations on | ||
+ | __Debian / Kali__ | ||
< | < | ||
apt install python3 python3-openssl | apt install python3 python3-openssl | ||
+ | </ | ||
+ | |||
+ | __Red Hat / Oracle __ | ||
+ | < | ||
+ | yum install python3 python3-pyOpenSSL | ||
</ | </ | ||
Line 242: | Line 248: | ||
supported modules. | supported modules. | ||
- | Here is one to upgrade | + | Here is one to update |
- | __upgrade.yml__ | + | __debian_update.yml__ |
< | < | ||
--- | --- | ||
Line 250: | Line 256: | ||
become: yes | become: yes | ||
tasks: | tasks: | ||
- | - name: Upgrade | + | - name: UPDATE |
ansible.builtin.apt: | ansible.builtin.apt: | ||
update_cache: | update_cache: | ||
upgrade: full | upgrade: full | ||
+ | </ | ||
+ | |||
+ | And, another to update REDHAT, Eg. Oracle Linux | ||
+ | |||
+ | __redhat_update.yml__ | ||
+ | |||
+ | < | ||
+ | --- | ||
+ | - hosts: VM_REDHAT | ||
+ | become: yes | ||
+ | tasks: | ||
+ | - name: UPDATE | ||
+ | yum: | ||
+ | name: ' | ||
+ | state: latest | ||
</ | </ | ||
Line 261: | Line 282: | ||
< | < | ||
- | ansible-playbook ~/.ansible/upgrade.yml | + | ansible-playbook ~/.ansible/debian_update.yml |
PLAY [home] *************************************************************************************************************** | PLAY [home] *************************************************************************************************************** | ||
Line 278: | Line 299: | ||
ok: [PiF] | ok: [PiF] | ||
- | TASK [Upgrade] ************************************************************************************************************ | + | TASK [UPDATE] ************************************************************************************************************ |
[WARNING]: Module invocation had junk after the JSON data: 1:23.50s | [WARNING]: Module invocation had junk after the JSON data: 1:23.50s | ||
changed: [PiH] | changed: [PiH] |