找不到可用、已安装或已更新的 'git2u' 匹配的软件包

No package matching 'git2u' found available, installed or updated

我正在尝试 运行 在我现有的节点上使用 Ansible,我在所有节点上都遇到了错误,除了它在其上运行良好的节点:

错误信息:

No package matching 'git2u' found available, installed, or updated.

所有节点都是 CentOS 7。

我做错了什么?

当我从终端使用 yum 时也是如此:

yum info git2u
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, langpacks, ps
Loading mirror speeds from cached hostfile
 * epel: d2lzkl7pfhq30w.cloudfront.net
Error: No matching Packages to list

我的剧本:

- name: install epel7 and ius-release to install latest git
  package:
    name:
    - epel-release
    - 'https://repo.ius.io/ius-release-el7.rpm'
    state: present
  when: ansible_distribution == 'CentOS'

- name: install git2u
  package:
    name: git2u
    state: present
  when: ansible_distribution == 'CentOS'

git2u 包 renamed to git216, which was later retired. If you use IUS I highly recommend watching the announce repository 在包停用时收到通知。

https://ius.io/faq#how-do-i-know-when-an-ius-package-is-being-retired