mirror of https://github.com/ceph/ceph-ansible.git
36 lines
847 B
YAML
36 lines
847 B
YAML
---
|
|
- name: update cache for Debian based OSs
|
|
apt:
|
|
update_cache: yes
|
|
when: ansible_os_family == "Debian"
|
|
register: result
|
|
until: result is succeeded
|
|
|
|
- name: include_tasks configure_firewall.yml
|
|
include_tasks: configure_firewall.yml
|
|
when:
|
|
- configure_firewall | bool
|
|
- ansible_os_family in ['RedHat', 'Suse']
|
|
tags: configure_firewall
|
|
|
|
- name: include_tasks setup_ntp.yml
|
|
include_tasks: setup_ntp.yml
|
|
when: ntp_service_enabled | bool
|
|
tags: configure_ntp
|
|
|
|
- name: ensure logrotate is installed
|
|
package:
|
|
name: logrotate
|
|
state: present
|
|
register: result
|
|
until: result is succeeded
|
|
when: not is_atomic | bool
|
|
|
|
- name: add logrotate configuration
|
|
template:
|
|
src: logrotate.conf.j2
|
|
dest: /etc/logrotate.d/ceph
|
|
mode: "0644"
|
|
owner: root
|
|
group: root
|
|
when: containerized_deployment | bool |