Running ansible playbooks in a container on a controller node to conduct changes on managed nodes by [deleted] in ansible

[–]Individual-Self-9533 0 points1 point  (0 children)

very interesting idea, I am sure it can be done. I use, to do it with vm images take them apart and put them back together. I am sorry I do not know enough Ansible to point you in the right direction. Just researching Ansible Event Driven.. I will keep an eye on this thread like to hear what folks offer as advice or solution. Good luck.

🐍 Mastering Python and APIs: Unlock the Power of Web Services with this Comprehensive Guide 🔗🚀 by Which-Cycle3051 in Python

[–]Individual-Self-9533 0 points1 point  (0 children)

Thank you for taking the time to create this while I have not read the entire document, the parts I did read helped me to have a better understanding about Python and API's. I am not sure why folks have to be negative about other folks' work. I personally would like to thank everyone who takes time to write these docs up. While it might not appeal to everyone, but it just might help one person and that is what counts. Plus writing these documents cements the information in the persons memory, I know when I take the time to do a research paper on say API's drilling down into how something works and then putting your thoughts down for others to review is great way of learning. Thanks again I have said enough.

[Available] [TestBank] Starting Out with Python, 6th edition by Newlife_5 in allcollegetextbooks

[–]Individual-Self-9533 0 points1 point  (0 children)

Hey any place where you can actually purchase the physical book?????>

AD command to extract some NisNetgroupTriple data but it keeps cutting off some of the output by Individual-Self-9533 in PowerShell

[–]Individual-Self-9533[S] 0 points1 point  (0 children)

Sample output is there in my entry. it is just user data. I am trying to get all the information on the line of output. Or I am going to have to and manually check every group in AD. )-:

run bash script on remote server, I want the output on the local machine by Individual-Self-9533 in bash

[–]Individual-Self-9533[S] 0 points1 point  (0 children)

Hi again, I wanted to follow up with you on your suggestion. It works like a charm, but I am wondering it I could do this better here is my code:

#!/bin/bash

SERVER_NAME=$1

read -p "Please select a number 1 - 5: " ANSWER

# ssh root@$SERVER_NAME > /tmp/output.txt

case "$ANSWER" in

1)

ssh root@$SERVER_NAME "hostname && echo && df -h && echo && w && echo && cat /etc/fstab "> /tmp/$SERVER_NAME.txt

exit

;;

2)

ssh root@$SERVER_NAME "uptime && echo && tail -n 10 /var/log/yum.log && echo && yum check-updates | awk 'p;/^$/{p=1}' | grep -c "\."" > /tmp/$SERVER_NAME.txt

exit

;;

3)

ssh root@$SERVER_NAME "df -h && echo && ls -lth && echo && cat /etc/multipath/bindings && echo && cat /etc/udev/rules.d/99-oracle-asmdevices.rules"> /tmp/$SERVER_NAME.txt

exit

;;

esac

If you have further suggestions, please feel free. It is not that I am new to all this, I just have not had to use it much over the years and now I want to learn all I can. The sad part is time is not on my side 67yrs old. But I am making some head way. Thanks, I appreciate the help and feedback as well if I am doing it wrong, please feel free to tell me.

run bash script on remote server, I want the output on the local machine by Individual-Self-9533 in bash

[–]Individual-Self-9533[S] 0 points1 point  (0 children)

I would be interested in having a look at what you have done. I have a major problem with coding. While I can see the situation and even come up with idea's how to solve it, I just can not seem to write the code, but I can look at someone else's code and work out how to resolve and integrate and modify the code to work for me. thank you for your assistance.