- name: install default httpd.conf
template:
- src: ../../templates/httpd.conf
+ src: "{{ role_path }}/templates/httpd.conf"
dest: /etc/apache2/httpd.conf
owner: root
group: root
- name: install rados gateway vhost
template:
- src: ../../templates/rgw.conf
+ src: "{{ role_path }}/templates/rgw.conf"
dest: /etc/apache2/sites-available/rgw.conf
owner: root
group: root
- name: install s3gw.fcgi script
template:
- src: ../../templates/s3gw.fcgi.j2
+ src: "{{ role_path }}/templates/s3gw.fcgi.j2"
dest: /var/www/s3gw.fcgi
mode: 0555
owner: root
---
- name: add ceph extra
template:
- src: ../../templates/ceph-extra.repo
+ src: "{{ role_path }}/templates/ceph-extra.repo"
dest: /etc/yum.repos.d
owner: root
group: root
- name: install rados gateway vhost
template:
- src: ../../templates/rgw.conf
+ src: "{{ role_path }}/templates/rgw.conf"
dest: /etc/httpd/conf.d/rgw.conf
owner: root
group: root
- name: install s3gw.fcgi script
template:
- src: ../../templates/s3gw.fcgi.j2
+ src: "{{ role_path }}/templates/s3gw.fcgi.j2"
dest: /var/www/s3gw.fcgi
mode: 0555
owner: root
- name: add red hat storage repository
template:
- src: ../../templates/redhat_storage_repo.j2
+ src: "{{ role_path }}/templates/redhat_storage_repo.j2"
dest: /etc/yum.repos.d/rh_storage.repo
owner: root
group: root
- name: add inktank ceph enterprise repository
template:
- src: redhat_ice_repo.j2
+ src: "{{ role_path }}/templates/redhat_ice_repo.j2"
dest: /etc/yum.repos.d/ice.repo
owner: root
group: root
- name: generate ceph configuration file
action: config_template
args:
- src: "{{ playbook_dir }}/roles/ceph-common/templates/ceph.conf.j2"
+ src: "{{ role_path }}/templates/ceph.conf.j2"
dest: /etc/ceph/ceph.conf
owner: "root"
group: "root"
- name: generate systemd unit file
become: true
template:
- src: "{{ playbook_dir }}/roles/ceph-mon/templates/ceph-mon.service.j2"
+ src: "{{ role_path }}/templates/ceph-mon.service.j2"
dest: /var/lib/ceph/ceph-mon@.service
owner: "root"
group: "root"
- name: generate systemd unit file
become: true
template:
- src: "{{ playbook_dir }}/roles/ceph-osd/templates/ceph-osd.service.j2"
+ src: "{{ role_path }}/templates/ceph-osd.service.j2"
dest: /var/lib/ceph/ceph-osd@.service
owner: "root"
group: "root"