Hi Tony,

Does it mean that it'll not use the security provided by gpg signatures of 
the packages?

Em quinta-feira, 10 de maio de 2018 15:21:17 UTC-3, Tony Chia escreveu:
>
>
> Maybe try adding "disable_gpg_check: true" to the "install kuberlet" task? 
>
>
> On Thursday, May 10, 2018 at 10:12:58 AM UTC-7, Fabio Gomes Sakiyama wrote:
>>
>> Hi Nick, thanks for helping!
>>
>> the curl executed fine, I didn't mention but my environment is running on 
>> google cloud. 
>> If I enter the worker node and manually execute 'yum install kubelet', it 
>> works. But the same command on ansible playbook throws the error i 
>> mentioned... :(
>>
>> Em quinta-feira, 10 de maio de 2018 14:05:21 UTC-3, Nick Rogers escreveu:
>>>
>>> I would try to `curl 
>>> https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml'
>>>  
>>> from the error on worker1/2 and see if it reports anything more helpful 
>>> than what you're getting back. Feels like a networking problem to me.
>>>
>>> On Thursday, May 10, 2018 at 11:25:36 AM UTC-5, Fabio Gomes Sakiyama 
>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I'm trying to install kubelet with *Ansible*, but I'm struggling to do 
>>>> it.
>>>>
>>>>
>>>> This is my *playbook*:
>>>>
>>>>
>>>> ---
>>>>   - hosts: all
>>>>     become: yes
>>>>     tasks:
>>>>       - name: install docker
>>>>         yum:
>>>>           name: docker
>>>>           state: present
>>>>           update_cache: true
>>>>
>>>>       - name: add repo
>>>>         yum_repository:
>>>>           name: kuberepo
>>>>           description: kubernetes-repo
>>>>           baseurl: 
>>>> "https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64";
>>>>           enabled: yes
>>>>           gpgcheck: yes
>>>>           repo_gpgcheck: yes
>>>>           gpgkey:
>>>>             - "https://packages.cloud.google.com/yum/doc/yum-key.gpg";
>>>>             - 
>>>> "https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg";
>>>>
>>>>       - name: setenforce
>>>>         shell: setenforce 0
>>>>
>>>>       - name: install kubelet
>>>>         yum:
>>>>           name: kubelet
>>>>           state: present
>>>>           update_cache: true
>>>>
>>>>
>>>> This is the *error* when i run the playbook (ansible-playbook -i hosts 
>>>> kube-dependencies.yml) 
>>>>
>>>>
>>>> <https://lh3.googleusercontent.com/-oT8v8pXEIb0/WvRyKSWIGvI/AAAAAAAATK8/ZpT3y8kJ5cwPjxgUQ3hBkMhMSxI_ByIjgCLcBGAs/s1600/ansibleError.png>
>>>>
>>>>
>>>> The "ok" from [master] node is because I manually executed "sudo yum 
>>>> install kubelet" on that machine, and it worked.
>>>>
>>>>
>>>> *Conclusions:* So basically, manually executing the yum install 
>>>> command it works, but I can't make it work with ansible.
>>>>
>>>>
>>>> Any clues? What am I doing wrong?
>>>>
>>>>
>>>> Thanks in advance!
>>>>
>>>>
>>>>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ff9a4da6-89ec-471d-b876-8292d971edd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to