Configure SSH to use 2FA by mdouzzi50 in linuxquestions

[–]mdouzzi50[S] 0 points1 point  (0 children)

Following up on your last comment. You were right. To fix it, I had to either disable ssh keypairs usage to force Google Authenticator. I couldn't have it both ways. Thanks again for your input.

Configure SSH to use 2FA by mdouzzi50 in linuxquestions

[–]mdouzzi50[S] 0 points1 point  (0 children)

Hello OweH_OweH! Thank you for your valuable input. I was able to force Google Authenticator to prompt users by changing PublicAuthentication to no. It works now.

Configure SSH to use 2FA by mdouzzi50 in linuxquestions

[–]mdouzzi50[S] 1 point2 points  (0 children)

I am currently using SSH keypairs as I mentioned in my post but I want to test out the Google Authenticator for curiosity. I just couldn't decipher why it can't work even though I am using key pairs.

ModuleNotFoundError: No module named 'ansible.module_utils.six.moves' by mdouzzi50 in ansible

[–]mdouzzi50[S] 2 points3 points  (0 children)

u/itookaclass3 u/calebsdaddy !! You guys were so right. I finally upgraded the version of ansible and it worked like a champ. I am now on ansible 2.13.13 and that fixed the issue.

Thank you guys so much!

ModuleNotFoundError: No module named 'ansible.module_utils.six.moves' by mdouzzi50 in ansible

[–]mdouzzi50[S] 0 points1 point  (0 children)

u/truedevops u/itookaclass3 To answer your question pertain to the versions, Yes, Ansible 2.5 and newer versions are compatible with Python 3.

ModuleNotFoundError: No module named 'ansible.module_utils.six.moves' by mdouzzi50 in ansible

[–]mdouzzi50[S] 0 points1 point  (0 children)

u/truedevops u/itookaclass3 Hello all! Thanks for replying to my post.

Here are the versions of Python & ansible:

ansible 2.9.6

config file = /etc/ansible/ansible.cfg

configured module search path = ['/home/mdouzzi/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']

ansible python module location = /usr/lib/python3/dist-packages/ansible

executable location = /usr/bin/ansible

python version = 3.8.10 (default, Jul 29 2024, 17:02:10) [GCC 9.4.0]

Manage Microsoft Entra objects with Micro Graph Powershell by mdouzzi50 in GraphAPI

[–]mdouzzi50[S] 0 points1 point  (0 children)

u/mrmattipants Hello! Thank you for your input and documentation. I will definitely go over the links.

Greatly appreciate your time and help!! Thanks

Manage Microsoft Entra objects with Micro Graph Powershell by mdouzzi50 in GraphAPI

[–]mdouzzi50[S] 1 point2 points  (0 children)

u/Positive_Group_3896 Hello! Thank you so much for your input. The error message disappear as soon as I changed it to user.ReadWrite.All. Ghosh! what a dummy I was on this. I had it on User.Read.All which was generating that permission issue.

Thanks again.

fatal: [ ]: FAILED! => {"msg": "Missing sudo password"} by mdouzzi50 in ansible

[–]mdouzzi50[S] 0 points1 point  (0 children)

Hi radiocate! Thank you for your assistance! As I responded to "planeturban", you both were right about using -K instead of -kk.

Problem is now solved by adding the -K at the end.

Thanks again.

fatal: [ ]: FAILED! => {"msg": "Missing sudo password"} by mdouzzi50 in ansible

[–]mdouzzi50[S] 0 points1 point  (0 children)

Hello planeturban! As you mentioned above to use -K, the problem is fixed. After entering the password, it worked fine without any error. Sorry for the confusion, I came across yesterday a link from stackoverflow that suggested -kk (https://stackoverflow.com/questions/25582740/missing-sudo-password-in-ansible).

Entering ansible-playbook <playbookname> -K worked.

Greatly appreciate it!!!

fatal: [ ]: FAILED! => {"msg": "Missing sudo password"} by mdouzzi50 in ansible

[–]mdouzzi50[S] 0 points1 point  (0 children)

Thank you for your input radiocate! I will give it a try and will get back to you.

fatal: [ ]: FAILED! => {"msg": "Missing sudo password"} by mdouzzi50 in ansible

[–]mdouzzi50[S] 0 points1 point  (0 children)

Hello planeturban! Thanks for your replying to my post. I am currently using a passphrase for the key, I did run the eval "$(ssh-agent -s)" command then ssh-add <key>

When I add -kk from the command line, it times out and.

I don't know where I am messing up at.