diff --git a/defaults/main.yaml b/defaults/main.yaml index 58be96c..9cded24 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -22,7 +22,7 @@ logrotate_task_manager: logrotate_install_method: package logrotate_package_name: logrotate -logrotate_package_state: installed +logrotate_package_state: present # tasks/config.yaml logrotate_configs: [] diff --git a/tasks/install/package.yaml b/tasks/install/package.yaml index e62c2f4..1e9d7df 100644 --- a/tasks/install/package.yaml +++ b/tasks/install/package.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Ensure logrotate is installed. +- name: Ensure logrotate is present become: yes package: name: "{{ logrotate_package_name }}"