Sounds like user c8900509 doesn't have sudo permissions to become root. Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123
On Mar 2, 2023, at 11:58 AM, Himasree chinthala <[email protected]> wrote: --- - name: os patching hosts: all gather_facts: yes become: true remote_user: c8900509 connection: ssh tasks: - name: update os patch yum: name: "*" state: latest TASK [update os patch] ********************************************************************************************** fatal: [rn-plecd-lapp01.rno.apple.com]: FAILED! => {"changed": true, "changes": {"installed": [], "updated": [["applejdk-17", "1:17.0.6.10.1-1.x86_64 from Apple-Internal-linux7"]]}, "msg": "You need to be root to perform this command.\n", "rc": 1, "results": ["Loaded plugins: langpacks\n"]} -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e9df9afa-1254-46e0-bff9-437e00c71eean%40googlegroups.com<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2Fe9df9afa-1254-46e0-bff9-437e00c71eean%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cwalter.rowe%40nist.gov%7Cf733c44e383e44b97e2208db1b3f9ae7%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638133732241054821%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WHLag4wDxbaAQi9yF%2BAZ2P7pLCAc9RD1pDM%2BILPY%2FZU%3D&reserved=0>. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/AA8A835D-E528-476B-A83D-ECE6EE69FBF6%40nist.gov.
