From 15854713424bde993e7f16908c294a5f5a6c2f56 Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Mon, 21 Aug 2023 11:55:12 +0200 Subject: [PATCH] NR-144355: install logrotate on Debian images --- test/automated/ansible/group_vars/localhost/main.yml | 2 +- .../ansible/roles/logrotate/tasks/logrotate-Debian.yaml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/automated/ansible/group_vars/localhost/main.yml b/test/automated/ansible/group_vars/localhost/main.yml index 724d985f4..5570b91f3 100644 --- a/test/automated/ansible/group_vars/localhost/main.yml +++ b/test/automated/ansible/group_vars/localhost/main.yml @@ -274,7 +274,7 @@ instances: # platform: "linux" # python_interpreter: "/usr/bin/python3" # launch_template: "LaunchTemplateId=lt-0b00afb3f5110a0e6,Version=3" - # - ami: "ami-02e9e442f629e6834" + - ami: "ami-02e9e442f629e6834" type: "t3a.small" name: "amd64:debian-bookworm" username: "admin" diff --git a/test/automated/ansible/roles/logrotate/tasks/logrotate-Debian.yaml b/test/automated/ansible/roles/logrotate/tasks/logrotate-Debian.yaml index 8b6ae68cb..75d4fa7d9 100644 --- a/test/automated/ansible/roles/logrotate/tasks/logrotate-Debian.yaml +++ b/test/automated/ansible/roles/logrotate/tasks/logrotate-Debian.yaml @@ -1,5 +1,11 @@ --- +- name: Install logrotate + apt: + name: logrotate + state: present + update_cache: yes + - name: Create rsyslog script directory file: path=/usr/lib/rsyslog state=directory mode=0755 @@ -15,4 +21,4 @@ src: rsyslog.j2 dest: "/etc/logrotate.d/rsyslog" -... \ No newline at end of file +...