[test@ip-172-31-1-143 opt]$ ansible webservers -m yum -a ‘name=/opt/mysql/mysql80-community-release-el7-2.noarch.rpm state=present’
172.31.13.61 | FAILED! => {
“changed”: false,
“failed”: true,
“msg”: “You need to be root to perform this command.\n”,
“rc”: 1,
“results”: [
“Loaded plugins: extras_suggestions, langpacks, priorities, update-motd\n”
]
}
“you need to be root to perform this command” https://docs.ansible.com/ansible/latest/user_guide/become.html