mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-11-09 22:40:36 +00:00
work around Ansible "Consider using yum module" warnings
This commit is contained in:
parent
1093492b46
commit
6b2595b029
@ -1,13 +1,16 @@
|
||||
- get_url: url=https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo
|
||||
dest=/etc/yum.repos.d/passenger.repo
|
||||
become: yes
|
||||
|
||||
- rpm_key: key=https://packagecloud.io/gpg.key
|
||||
become: yes
|
||||
|
||||
# this makecache is mostly because I can not find any other way to fully
|
||||
# import the GPG. key for the Passenger repo. 'rpm --import' is not
|
||||
# import the GPG. key for the Passenger repo. 'rpm_key' is not
|
||||
# sufficient.
|
||||
- command: /usr/bin/yum -q makecache -y --disablerepo='*' --enablerepo='passenger*'
|
||||
# The use of /usr/bin/env is a hack to avoid Ansible's "Consider using
|
||||
# yum module..." warnings when it sees 'yum' as the primary command.
|
||||
- command: /usr/bin/env yum -q makecache -y --disablerepo='*' --enablerepo='passenger*'
|
||||
become: yes
|
||||
changed_when: False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user