Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task in autoupdate-RedHat.yml does not work on Rocky 9 #134

Open
FH089 opened this issue Sep 11, 2024 · 0 comments
Open

Task in autoupdate-RedHat.yml does not work on Rocky 9 #134

FH089 opened this issue Sep 11, 2024 · 0 comments

Comments

@FH089
Copy link

FH089 commented Sep 11, 2024

Hi

This task does not work on Rocky 9 and ansible 2.17.3

- name: Configure autoupdates.
  lineinfile:
    dest: '{{ update_conf_path }}'
    regexp: '^apply_updates = .+'
    line: 'apply_updates = yes'
    mode: 0644
  when:
    - security_autoupdate_enabled
    - ansible_distribution_major_version | int in [7, 8]

by adding this it works

- - ansible_distribution_major_version | int in [7, 8]
+ - ansible_distribution_major_version | int in [7, 8, 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant