Re: [ansible-project] Re: Failed to copy repo to /etc/yum.repos.d

2019-06-19 Thread Robert Williams
Also looks like your ansible user and your ansible become user are the same. Is that desired? I would imagine those files are owned by root, so suspect you need to have root as your ansible become user to have rights. On Wed, Jun 19, 2019, 4:57 PM Dick Visser wrote: > > > On Wed, 19 Jun 2019 at

Re: [ansible-project] Re: Failed to copy repo to /etc/yum.repos.d

2019-06-19 Thread Dick Visser
On Wed, 19 Jun 2019 at 19:25, Annam Rafi wrote: > Yes this user is in the sudoers file with full permissions. As an > alternative, I created the repo file my home directory and then tried to > copy it into /etc/yum.repos.d but im getting an error of ": FAILED! => > {"changed": false, "msg":

[ansible-project] Re: Failed to copy repo to /etc/yum.repos.d

2019-06-19 Thread Annam Rafi
Yes this user is in the sudoers file with full permissions. As an alternative, I created the repo file my home directory and then tried to copy it into /etc/yum.repos.d but im getting an error of ": FAILED! => {"changed": false, "msg": "Destination /etc/yum.repos.d not writable"}" On

[ansible-project] Re: Failed to copy repo to /etc/yum.repos.d

2019-06-19 Thread Robert Williams
Have you validated that the user in question has the rights to make the change and that your become is valid? You could add a task before the repo change using `shell: whoami` to make sure the become is working properly. Also not sure if you need the single quotes on the ansible_become_user

[ansible-project] Re: Failed to copy repo to /etc/yum.repos.d

2019-06-19 Thread Annam Rafi
this is my inventory txt file. what am i missing? [image: Screen Shot 2019-06-19 at 11.57.09 AM.png] On Wednesday, June 19, 2019 at 11:56:40 AM UTC-4, Annam Rafi wrote: > > [image: Screen Shot 2019-06-19 at 11.51.35 AM.png] > I tried to use the yum_repository module to create a custom repo