Przeglądaj źródła

Configure logrotate on atomic.

Andrew Butcher 9 lat temu
rodzic
commit
27c32e83c8

+ 0 - 1
playbooks/common/openshift-etcd/config.yml

@@ -89,7 +89,6 @@
   roles:
   - etcd
   - role: nickhammond.logrotate
-    when: not openshift.common.is_atomic | bool
 
 - name: Delete temporary directory on localhost
   hosts: localhost

+ 0 - 1
playbooks/common/openshift-master/config.yml

@@ -338,7 +338,6 @@
   roles:
   - openshift_master
   - role: nickhammond.logrotate
-    when: not openshift.common.is_atomic | bool
   - role: fluentd_master
     when: openshift.common.use_fluentd | bool
   - role: nuage_master

+ 0 - 1
playbooks/common/openshift-node/config.yml

@@ -214,7 +214,6 @@
   - role: nuage_node
     when: openshift.common.use_nuage | bool
   - role: nickhammond.logrotate
-    when: not openshift.common.is_atomic | bool
   - role: fluentd_node
     when: openshift.common.use_fluentd | bool
   tasks:

+ 1 - 0
roles/nickhammond.logrotate/tasks/main.yml

@@ -1,6 +1,7 @@
 ---
 - name: nickhammond.logrotate | Install logrotate
   action: "{{ ansible_pkg_mgr }} name=logrotate state=present"
+  when: not openshift.common.is_atomic | bool
 
 - name: nickhammond.logrotate | Setup logrotate.d scripts
   template: