You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setup failure: Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.
#89
TASK [commons/pre-install : Add Kubernetes APT repository] *********************
Thursday 12 August 2021 17:12:09 -0700 (0:00:02.143) 0:00:54.457 *******
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.
fatal: [192.168.0.11]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.0.11 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.8666284-1749-124276574227406/AnsiballZ_apt_repository.py", line 102, in \r\n _ansiballz_main()\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.8666284-1749-124276574227406/AnsiballZ_apt_repository.py", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.8666284-1749-124276574227406/AnsiballZ_apt_repository.py", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.apt_repository', init_globals=None, run_name='main', alter_sys=True)\r\n File "/usr/lib/python3.6/runpy.py", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File "/usr/lib/python3.6/runpy.py", line 85, in _run_code\r\n exec(code, run_globals)\r\n File "/tmp/ansible_apt_repository_payload_yi7jlojn/ansible_apt_repository_payload.zip/ansible/modules/apt_repository.py", line 604, in \r\n File "/tmp/ansible_apt_repository_payload_yi7jlojn/ansible_apt_repository_payload.zip/ansible/modules/apt_repository.py", line 581, in main\r\n File "/usr/lib/python3/dist-packages/apt/cache.py", line 168, in init\r\n self.open(progress)\r\n File "/usr/lib/python3/dist-packages/apt/cache.py", line 223, in open\r\n self._cache = apt_pkg.Cache(progress)\r\napt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.
fatal: [192.168.0.12]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.0.12 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.943152-1750-197405217095954/AnsiballZ_apt_repository.py", line 102, in \r\n _ansiballz_main()\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.943152-1750-197405217095954/AnsiballZ_apt_repository.py", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.943152-1750-197405217095954/AnsiballZ_apt_repository.py", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.apt_repository', init_globals=None, run_name='main', alter_sys=True)\r\n File "/usr/lib/python3.6/runpy.py", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File "/usr/lib/python3.6/runpy.py", line 85, in _run_code\r\n exec(code, run_globals)\r\n File "/tmp/ansible_apt_repository_payload_hi8nupwx/ansible_apt_repository_payload.zip/ansible/modules/apt_repository.py", line 604, in \r\n File "/tmp/ansible_apt_repository_payload_hi8nupwx/ansible_apt_repository_payload.zip/ansible/modules/apt_repository.py", line 581, in main\r\n File "/usr/lib/python3/dist-packages/apt/cache.py", line 168, in init\r\n self.open(progress)\r\n File "/usr/lib/python3/dist-packages/apt/cache.py", line 223, in open\r\n self._cache = apt_pkg.Cache(progress)\r\napt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
are they arm machines on oci?
I removed docker play from site.yml and used https://github.com/nickjj/ansible-docker , it worked for me otherwise i was also facing the same issue.
TASK [commons/pre-install : Install Kubernetes packages] ***********************
Thursday 12 August 2021 17:12:07 -0700 (0:00:00.171) 0:00:52.200 *******
included: /home/yy/kubeadm-ansible/roles/commons/pre-install/tasks/pkg.yml for 192.168.0.11, 192.168.0.12
TASK [commons/pre-install : Add Kubernetes APT GPG key] ************************
Thursday 12 August 2021 17:12:07 -0700 (0:00:00.113) 0:00:52.314 *******
changed: [192.168.0.11]
changed: [192.168.0.12]
TASK [commons/pre-install : Add Kubernetes APT repository] *********************
Thursday 12 August 2021 17:12:09 -0700 (0:00:02.143) 0:00:54.457 *******
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.
fatal: [192.168.0.11]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.0.11 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.8666284-1749-124276574227406/AnsiballZ_apt_repository.py", line 102, in \r\n _ansiballz_main()\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.8666284-1749-124276574227406/AnsiballZ_apt_repository.py", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.8666284-1749-124276574227406/AnsiballZ_apt_repository.py", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.apt_repository', init_globals=None, run_name='main', alter_sys=True)\r\n File "/usr/lib/python3.6/runpy.py", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File "/usr/lib/python3.6/runpy.py", line 85, in _run_code\r\n exec(code, run_globals)\r\n File "/tmp/ansible_apt_repository_payload_yi7jlojn/ansible_apt_repository_payload.zip/ansible/modules/apt_repository.py", line 604, in \r\n File "/tmp/ansible_apt_repository_payload_yi7jlojn/ansible_apt_repository_payload.zip/ansible/modules/apt_repository.py", line 581, in main\r\n File "/usr/lib/python3/dist-packages/apt/cache.py", line 168, in init\r\n self.open(progress)\r\n File "/usr/lib/python3/dist-packages/apt/cache.py", line 223, in open\r\n self._cache = apt_pkg.Cache(progress)\r\napt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.
fatal: [192.168.0.12]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.0.12 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.943152-1750-197405217095954/AnsiballZ_apt_repository.py", line 102, in \r\n _ansiballz_main()\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.943152-1750-197405217095954/AnsiballZ_apt_repository.py", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/yy/.ansible/tmp/ansible-tmp-1628813529.943152-1750-197405217095954/AnsiballZ_apt_repository.py", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.apt_repository', init_globals=None, run_name='main', alter_sys=True)\r\n File "/usr/lib/python3.6/runpy.py", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File "/usr/lib/python3.6/runpy.py", line 85, in _run_code\r\n exec(code, run_globals)\r\n File "/tmp/ansible_apt_repository_payload_hi8nupwx/ansible_apt_repository_payload.zip/ansible/modules/apt_repository.py", line 604, in \r\n File "/tmp/ansible_apt_repository_payload_hi8nupwx/ansible_apt_repository_payload.zip/ansible/modules/apt_repository.py", line 581, in main\r\n File "/usr/lib/python3/dist-packages/apt/cache.py", line 168, in init\r\n self.open(progress)\r\n File "/usr/lib/python3/dist-packages/apt/cache.py", line 223, in open\r\n self._cache = apt_pkg.Cache(progress)\r\napt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://apt.kubernetes.io/ kubernetes-xenial: /usr/share/keyrings/kubernetes-archive-keyring.gpg != , E:The list of sources could not be read.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
PLAY RECAP *********************************************************************
192.168.0.11 : ok=16 changed=8 unreachable=0 failed=1 skipped=13 rescued=0 ignored=0
192.168.0.12 : ok=16 changed=8 unreachable=0 failed=1 skipped=13 rescued=0 ignored=0
192.168.0.13 : ok=12 changed=7 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0
Thursday 12 August 2021 17:12:10 -0700 (0:00:00.945) 0:00:55.402 *******
docker : Install docker engine (Debian/Ubuntu) ------------------------- 21.04s
docker : Install apt-transport-https ------------------------------------ 9.63s
docker : Add Docker APT repository -------------------------------------- 4.91s
docker : Add Docker APT GPG key ----------------------------------------- 2.31s
commons/pre-install : Add Kubernetes APT GPG key ------------------------ 2.14s
docker : Copy Docker engine service file -------------------------------- 2.13s
Gathering Facts --------------------------------------------------------- 2.09s
docker : Copy Docker environment config file ---------------------------- 1.58s
Gathering Facts --------------------------------------------------------- 1.44s
docker : Enable and check Docker service -------------------------------- 1.42s
docker : Hold docker version -------------------------------------------- 1.22s
docker : Add any insecure registries to Docker config ------------------- 1.07s
commons/pre-install : Add Kubernetes APT repository --------------------- 0.95s
commons/os-checker : Override config file directory for Debian ---------- 0.25s
docker : Add registry to Docker config ---------------------------------- 0.25s
commons/os-checker : Set fact ansible_os_family var to RedHat ----------- 0.24s
docker : Install docker engine (RHEL/CentOS) ---------------------------- 0.24s
commons/os-checker : Set fact ansible_os_family var to Debian ----------- 0.24s
commons/os-checker : Set fact ansible_os_family var to Debian ----------- 0.24s
The text was updated successfully, but these errors were encountered: