调整Ansible的结构,支持多环境部署。
This commit is contained in:
29
roles/pulp-consumer/tasks/main.yml
Normal file
29
roles/pulp-consumer/tasks/main.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
- name: "Install EPEL"
|
||||
yum:
|
||||
name: http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||
state: present
|
||||
|
||||
- name: "Install Pulp Consumer Tools Repo"
|
||||
get_url:
|
||||
url: https://repos.fedorapeople.org/repos/pulp/pulp/rhel-pulp.repo
|
||||
dest: /etc/yum.repos.d/rhel-pulp.repo
|
||||
|
||||
- name: "Install Pulp Consumer Tools"
|
||||
yum:
|
||||
name:
|
||||
- pulp-admin-client
|
||||
- pulp-rpm-admin-extensions
|
||||
- pulp-consumer-client
|
||||
- pulp-rpm-consumer-extensions
|
||||
- pulp-agent
|
||||
- pulp-rpm-handlers
|
||||
- pulp-rpm-yumplugins
|
||||
- python-gofer-qpid
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: "Start Pulp Message Service"
|
||||
systemd:
|
||||
state: started
|
||||
name: goferd
|
||||
Reference in New Issue
Block a user