You get a thumbs up for this, this is by far the most coherent and easiest tenurial on how to automate using ansible/satellite. Most of the other tutorials are long winded and don't get to the point.
Thanks, I'm glad you liked it. I always try to get right to the point, as I myself don't like it when others talk about everything but what I'm there to learn. Hoping to get more time soon to make new videos soon.
There is logic in there that deals with the difference from RHEL 7 and 8. What specific logic would you be looking for it to do? Satellite knows what the version of each host is, and is connected to the appropriate repositories. The playbook is just starting the yum or dnf command at that point to patch and then reboot the server once done.
Are you able to run any commands remotely from Satellite to your hosts? Can you run say the command "uptime"? What user account are you using to run the commands? Have you distributed keys from Satellite / Capsule to the hosts? What's the error message you are receiving when running the playbook?
Great content, The Root User. I am enjoying this channel, will share it with my friends. Unrelated to this video, what is a easy way to define PaaS vs. SaaS? It gets complex. You seem like a guy that would know.
Platform as a service is the first, it covers both the hardware and the software, whereas Software as a service is just the software. That's probably the most basic way of looking at the two of them.
@@therootuser Hey Bro thanks for replying to my query actually I have 2 request. I want to know how to manually do Linux server patching. Also if you can explain how to write a playbook step by step in layman terms & explain where & when to apply spaces, hyphens etc..& what are variables in playbook that would be great & helpful I am not from a programming background I would also like to how this automation of patching works. Thanks Again. Please do reply
I'll make two videos, one for manual patching, then work on another on creating Ansible Playbooks to patch and explain how it is done. I'll do the manual patch method first.
Hi Bro, I follow your step, but when i run the ansible playbook this my error 1: [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names 2: to new standard, use callbacks_enabled instead. This feature will be removed 3: from ansible-core in version 2.15. Deprecation warnings can be disabled by 4: setting deprecation_warnings=False in ansible.cfg. 5: [WARNING]: Callback disabled by environment. Disabling the Foreman callback 6: plugin. 7: 8: PLAY [all] ********************************************************************* 9: 10: TASK [Gathering Facts] ********************************************************* 11: fatal: [rhel7.example.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname rhel7.example.com : Name or service not known", "unreachable": true} 12: PLAY RECAP ********************************************************************* 13: rhel7.example.com : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0 14: Exit status: 4
Error message is stating Satellite is unable to reach or resolve the hostname client-rhel7.intra.itgroupinc.lan. Are you able to ping and ssh from Satellite to that server? Is DNS configured properly?
You get a thumbs up for this, this is by far the most coherent and easiest tenurial on how to automate using ansible/satellite. Most of the other tutorials are long winded and don't get to the point.
Thanks, I'm glad you liked it. I always try to get right to the point, as I myself don't like it when others talk about everything but what I'm there to learn. Hoping to get more time soon to make new videos soon.
Great Video!! you @TheRootUser are making great content
what is pre-work is required this to work? how connectivity is configured ? how it will get connect to client ?
You should add logic for RHEL 7,8, and 9...
Then it would be a super playbook!!!!
There is logic in there that deals with the difference from RHEL 7 and 8. What specific logic would you be looking for it to do? Satellite knows what the version of each host is, and is connected to the appropriate repositories. The playbook is just starting the yum or dnf command at that point to patch and then reboot the server once done.
Newbie here. So, if this yaml file is for security and bug fixes only does it update all OS files that needs it?
It will patch security and bug fixes with any dependencies. You can change it to do all patches too.
not working for me, does it require any prework ? like host name, user password or key etc in inventory file?
Are you able to run any commands remotely from Satellite to your hosts? Can you run say the command "uptime"? What user account are you using to run the commands? Have you distributed keys from Satellite / Capsule to the hosts? What's the error message you are receiving when running the playbook?
Great content, The Root User. I am enjoying this channel, will share it with my friends.
Unrelated to this video, what is a easy way to define PaaS vs. SaaS? It gets complex. You seem like a guy that would know.
Platform as a service is the first, it covers both the hardware and the software, whereas Software as a service is just the software. That's probably the most basic way of looking at the two of them.
@@therootuser Yeah.
Hi Bro can you show the patching of the Linux server without Red Hat Satellite
Sure, I can make a video on that. Did you want it shown done manually, or done using Ansible Automation.
@@therootuser Hey Bro thanks for replying to my query actually I have 2 request. I want to know how to manually do Linux server patching. Also if you can explain how to write a playbook step by step in layman terms & explain where & when to apply spaces, hyphens etc..& what are variables in playbook that would be great & helpful I am not from a programming background I would also like to how this automation of patching works. Thanks Again. Please do reply
I'll make two videos, one for manual patching, then work on another on creating Ansible Playbooks to patch and explain how it is done. I'll do the manual patch method first.
🙂Thanks bro appreciate it👍
Here is the video on how to patch a Linux server: th-cam.com/video/rh3ygz4x-Zc/w-d-xo.html
Hi Bro, I follow your step, but when i run the ansible playbook this my error
1:
[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names
2:
to new standard, use callbacks_enabled instead. This feature will be removed
3:
from ansible-core in version 2.15. Deprecation warnings can be disabled by
4:
setting deprecation_warnings=False in ansible.cfg.
5:
[WARNING]: Callback disabled by environment. Disabling the Foreman callback
6:
plugin.
7:
8:
PLAY [all] *********************************************************************
9:
10:
TASK [Gathering Facts] *********************************************************
11:
fatal: [rhel7.example.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname rhel7.example.com : Name or service not known", "unreachable": true}
12:
PLAY RECAP *********************************************************************
13:
rhel7.example.com : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
14:
Exit status: 4
Error message is stating Satellite is unable to reach or resolve the hostname client-rhel7.intra.itgroupinc.lan. Are you able to ping and ssh from Satellite to that server? Is DNS configured properly?
@@therootuser Good Day Bro. Yes, the DNS was configured properly. are you changed your ssh port ?
@@JeromeSalvador-le3yq No, it was all done via standard ports.
@@therootuser Thank you sir, but how to apply my port setup to the script?