mirror of https://github.com/ceph/ceph-ansible.git
35 lines
848 B
YAML
35 lines
848 B
YAML
---
|
|
- name: determine if node is registered with subscription-manager.
|
|
command: subscription-manager identity
|
|
register: subscription
|
|
changed_when: false
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: install dependencies
|
|
apt:
|
|
pkg: rhscon-agent
|
|
state: present
|
|
when: ansible_os_family == 'Debian'
|
|
tags:
|
|
- package-install
|
|
|
|
- name: install dependencies
|
|
# XXX Determine what RH repository this will belong to so that it can be
|
|
# properly checked and errored if the repository is not enabled.
|
|
yum:
|
|
name: rhscon-agent
|
|
state: present
|
|
when: ansible_os_family == 'RedHat'
|
|
tags:
|
|
- package-install
|
|
|
|
- name: create minion.d directory
|
|
file:
|
|
path: /etc/salt/minion.d
|
|
state: directory
|
|
|
|
- name: generate agent configuration file
|
|
template:
|
|
src: ceph_agent.j2
|
|
dest: /etc/salt/minion.d/ceph_agent.conf
|