can't run ansible command

40 views
Skip to first unread message

AQ

unread,
Apr 16, 2019, 8:04:12 PM4/16/19
to Ansible Project
[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"
    ]
}

Jonathan Lozada De La Matta

unread,
Apr 16, 2019, 8:11:58 PM4/16/19
to ansible...@googlegroups.com
"you need to be root to perform this command" https://docs.ansible.com/ansible/latest/user_guide/become.html

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/71cff60d-4f24-4d53-92ee-db54063973ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Jonathan lozada de la matta

AUTOMATION PRACTICE



 

Reply all
Reply to author
Forward
0 new messages